public static class VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.Factory extends VirtualMachine.ForHotSpot.Connection.Factory.ForPosixSocket
VirtualMachine.ForHotSpot.Connection.Factory.ForPosixSocket| Constructor and Description |
|---|
Factory(int attempts,
long pause,
TimeUnit timeUnit)
Creates a connection factory for a POSIX socket using JNA.
|
| Modifier and Type | Method and Description |
|---|---|
VirtualMachine.ForHotSpot.Connection |
doConnect(File socket)
Connects to the supplied POSIX socket.
|
protected void |
kill(String processId,
int signal,
File socket)
Sends a kill signal to the target process.
|
connectpublic Factory(int attempts,
long pause,
TimeUnit timeUnit)
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.protected void kill(String processId, int signal, File socket)
VirtualMachine.ForHotSpot.Connection.Factory.ForPosixSocketkill in class VirtualMachine.ForHotSpot.Connection.Factory.ForPosixSocketprocessId - The process id.signal - The signal to send.socket - The socket to read from.public VirtualMachine.ForHotSpot.Connection doConnect(File socket)
VirtualMachine.ForHotSpot.Connection.Factory.ForPosixSocketdoConnect in class VirtualMachine.ForHotSpot.Connection.Factory.ForPosixSocketsocket - The socket to connect to.Copyright © 2014–2019. All rights reserved.