Class LinuxVirtualMachine

    • Field Detail

      • isLinuxThreads

        static boolean isLinuxThreads
      • 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)
      • createAttachFile

        private java.io.File createAttachFile​(int pid)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeString

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

        static boolean isLinuxThreads()
      • getLinuxThreadsManager

        static int getLinuxThreadsManager​(int pid)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • sendQuitToChildrenOf

        static void sendQuitToChildrenOf​(int pid)
                                  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