Class VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile

    • Constructor Detail

      • ForSocketFile

        protected ForSocketFile​(String temporaryDirectory,
                                int attempts,
                                long pause,
                                TimeUnit timeUnit)
        Creates a connection factory for creating a socket connection via a file.
        Parameters:
        temporaryDirectory - The temporary directory to use.
        attempts - The maximum amount of attempts for checking the establishment of a socket connection.
        pause - The pause between two checks for an established socket connection.
        timeUnit - The time unit of the pause time.
    • Method Detail

      • kill

        protected abstract void kill​(String processId,
                                     int signal)
        Sends a kill signal to the target process.
        Parameters:
        processId - The process id.
        signal - The signal to send.
      • doConnect

        protected abstract VirtualMachine.ForHotSpot.Connection doConnect​(File socket)
                                                                   throws IOException
        Connects to the supplied POSIX socket.
        Parameters:
        socket - The socket to connect to.
        Returns:
        An active connection to the supplied socket.
        Throws:
        IOException - If an error occurs during connection.