Package net.bytebuddy.agent
Interface VirtualMachine.ForHotSpot.Connection
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket,VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor,VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe,VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel
- Enclosing class:
- VirtualMachine.ForHotSpot
public static interface VirtualMachine.ForHotSpot.Connection extends Closeable
Represents a connection to a virtual machine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceVirtualMachine.ForHotSpot.Connection.FactoryA factory for creating connections to virtual machines.static classVirtualMachine.ForHotSpot.Connection.ForJnaPosixSocketImplements a connection for a Posix socket in JNA.static classVirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoorA connection to a VM using a Solaris door.static classVirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipeImplements a connection for a Windows named pipe in JNA.static classVirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel<T>A connection that is represented by a byte channel that is persistent during communication.static interfaceVirtualMachine.ForHotSpot.Connection.ResponseA response to an execution command to a VM.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.ForHotSpot.Connection.Responseexecute(String protocol, String... argument)Executes a command on the current connection.
-
-
-
Method Detail
-
execute
VirtualMachine.ForHotSpot.Connection.Response execute(String protocol, String... argument) throws IOException
Executes a command on the current 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.
-
-