Package net.bytebuddy.agent
Interface VirtualMachine.ForHotSpot.Connection
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.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 java.io.CloseableRepresents 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(java.lang.String protocol, java.lang.String... argument)Executes a command on the current connection.
-
-
-
Method Detail
-
execute
VirtualMachine.ForHotSpot.Connection.Response execute(java.lang.String protocol, java.lang.String... argument) throws java.io.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:
java.io.IOException- If an I/O error occurred.
-
-