Package net.bytebuddy.agent
Interface VirtualMachine.ForHotSpot.Connection
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
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
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.
-