public static class VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.Factory extends VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
| Modifier and Type | Class and Description |
|---|---|
static interface |
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.Factory.MacLibrary
A library for reading a Mac user's temporary directory.
|
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile| Constructor and Description |
|---|
Factory(String temporaryDirectory,
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)
Sends a kill signal to the target process.
|
static VirtualMachine.ForHotSpot.Connection.Factory |
withDefaultTemporaryFolder(int attempts,
long pause,
TimeUnit timeUnit)
Creates a connection factory for a POSIX socket using JNA while locating the default temporary directory used on the
current platform.
|
connectpublic Factory(String temporaryDirectory, int attempts, long pause, TimeUnit timeUnit)
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.public static VirtualMachine.ForHotSpot.Connection.Factory withDefaultTemporaryFolder(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)
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFilekill in class VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFileprocessId - The process id.signal - The signal to send.public VirtualMachine.ForHotSpot.Connection doConnect(File socket)
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFiledoConnect in class VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFilesocket - The socket to connect to.Copyright © 2014–2025. All rights reserved.