Package net.bytebuddy.agent
Interface VirtualMachine.ForHotSpot.Connection
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel
- Enclosing class:
- VirtualMachine.ForHotSpot
public static interface VirtualMachine.ForHotSpot.Connection extends java.io.Closeable
Represents a connection to a virtual machine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
VirtualMachine.ForHotSpot.Connection.Factory
A factory for creating connections to virtual machines.static class
VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel<T>
A connection that is represented by a byte channel that is persistent during communication.static interface
VirtualMachine.ForHotSpot.Connection.Response
A response to an execution command to a VM.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.ForHotSpot.Connection.Response
execute(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.
-
-