Class BsdVirtualMachine

    • Field Detail

      • tmpdir

        private static final java.lang.String tmpdir
      • path

        java.lang.String path
      • PROTOCOL_VERSION

        private static final java.lang.String PROTOCOL_VERSION
        See Also:
        Constant Field Values
      • ATTACH_ERROR_BADVERSION

        private static final int ATTACH_ERROR_BADVERSION
        See Also:
        Constant Field Values
    • Method Detail

      • detach

        public void detach()
                    throws java.io.IOException
        Detach from the target VM
        Specified by:
        detach in class VirtualMachine
        Throws:
        java.io.IOException - If an I/O error occurs
      • findSocketFile

        private java.lang.String findSocketFile​(int pid)
      • writeString

        private void writeString​(int fd,
                                 java.lang.String s)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • sendQuitTo

        static void sendQuitTo​(int pid)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • checkPermissions

        static void checkPermissions​(java.lang.String path)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • socket

        static int socket()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • connect

        static void connect​(int fd,
                            java.lang.String path)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        static void close​(int fd)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        static int read​(int fd,
                        byte[] buf,
                        int off,
                        int bufLen)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        static void write​(int fd,
                          byte[] buf,
                          int off,
                          int bufLen)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • createAttachFile

        static void createAttachFile​(java.lang.String path)
      • getTempDir

        static java.lang.String getTempDir()