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
Represents a connection to a virtual machine.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A factory for creating connections to virtual machines.static class
Implements a connection for a POSIX socket in JNA.static class
A connection to a VM using a Solaris door.static class
Implements a connection for a Windows named pipe in JNA.static class
A connection that is represented by a byte channel that is persistent during communication.static interface
A response to an execution command to a VM. -
Method Summary
Modifier and TypeMethodDescriptionExecutes a command on the current connection.
-
Method Details
-
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.
-