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
FieldsModifier and TypeFieldDescriptionThe library to use for interacting with Solaris. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VirtualMachine.ForHotSpot.Connection
Connects to the supplied POSIX socket.protected void
Sends a kill signal to the target process.Methods inherited from class net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
connect
-
Field Details
-
library
The library to use for interacting with Solaris.
-
-
Constructor Details
-
Factory
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 Details
-
kill
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
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.
-