Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Factory
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Factory
-
- All Implemented Interfaces:
VirtualMachine.ForHotSpot.Connection.Factory
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
public static class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Factory extends VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
A factory for establishing a connection to a JVM using a Solaris door in JNA.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
-
-
Field Summary
Fields Modifier and Type Field Description private VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary
library
The library to use for interacting with Solaris.
-
Constructor Summary
Constructors Constructor Description Factory(int attempts, long pause, java.util.concurrent.TimeUnit timeUnit)
Creates a new connection factory for a Solaris VM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VirtualMachine.ForHotSpot.Connection
doConnect(java.io.File socket)
Connects to the supplied POSIX socket.protected void
kill(java.lang.String processId, int signal)
Sends a kill signal to the target process.-
Methods inherited from class net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
connect
-
-
-
-
Field Detail
-
library
private final VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library
The library to use for interacting with Solaris.
-
-
Constructor Detail
-
Factory
public Factory(int attempts, long pause, java.util.concurrent.TimeUnit timeUnit)
Creates a new connection factory for a Solaris VM.- Parameters:
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 void kill(java.lang.String processId, int signal)
Sends a kill signal to the target process.- Specified by:
kill
in classVirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
- Parameters:
processId
- The process id.signal
- The signal to send.
-
doConnect
protected VirtualMachine.ForHotSpot.Connection doConnect(java.io.File socket)
Connects to the supplied POSIX socket.- Specified by:
doConnect
in classVirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
- Parameters:
socket
- The socket to connect to.- Returns:
- An active connection to the supplied socket.
-
-