Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,VirtualMachine.ForHotSpot.Connection
- Enclosing interface:
VirtualMachine.ForHotSpot.Connection
public static class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
extends Object
implements VirtualMachine.ForHotSpot.Connection
A connection to a VM using a Solaris door.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A factory for establishing a connection to a JVM using a Solaris door in JNA.protected static class
A response from a VM using a Solaris door.protected static interface
A library for interacting with Solaris.Nested classes/interfaces inherited from interface net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe, VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe library to use for interacting with Solaris.private final File
The socket used for communication. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForJnaSolarisDoor
(VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library, File socket) Creates a new connection using a Solaris door. -
Method Summary
-
Field Details
-
library
The library to use for interacting with Solaris. -
socket
The socket used for communication.
-
-
Constructor Details
-
ForJnaSolarisDoor
protected ForJnaSolarisDoor(VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library, File socket) Creates a new connection using a Solaris door.- Parameters:
library
- The library to use for interacting with Solaris.socket
- The socket used for communication.
-
-
Method Details
-
execute
public VirtualMachine.ForHotSpot.Connection.Response execute(String protocol, String... argument) throws IOException Executes a command on the current connection.- Specified by:
execute
in interfaceVirtualMachine.ForHotSpot.Connection
- Parameters:
protocol
- The target VMs protocol version for the attach API.argument
- The arguments to send to the target VM.- Returns:
- The response of the target JVM.
- Throws:
IOException
- If an I/O error occurred.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-