public abstract static class VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile extends Object implements VirtualMachine.ForHotSpot.Connection.Factory
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile| Modifier | Constructor and Description |
|---|---|
protected |
ForSocketFile(String temporaryDirectory,
int attempts,
long pause,
TimeUnit timeUnit)
Creates a connection factory for creating a socket connection via a file.
|
| Modifier and Type | Method and Description |
|---|---|
VirtualMachine.ForHotSpot.Connection |
connect(String processId)
Connects to the supplied process.
|
protected abstract VirtualMachine.ForHotSpot.Connection |
doConnect(File socket)
Connects to the supplied POSIX socket.
|
protected abstract void |
kill(String processId,
int signal)
Sends a kill signal to the target process.
|
protected ForSocketFile(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 VirtualMachine.ForHotSpot.Connection connect(String processId) throws IOException
connect in interface VirtualMachine.ForHotSpot.Connection.FactoryprocessId - The process id.IOException - If an I/O exception occurs during connecting to the targeted VM.protected abstract void kill(String processId, int signal)
processId - The process id.signal - The signal to send.protected abstract VirtualMachine.ForHotSpot.Connection doConnect(File socket) throws IOException
socket - The socket to connect to.IOException - If an error occurs during connection.Copyright © 2014–2025. All rights reserved.