Package net.bytebuddy.agent
Interface VirtualMachine.ForHotSpot.Connection.Factory
-
- All Known Implementing Classes:
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
- Enclosing interface:
- VirtualMachine.ForHotSpot.Connection
public static interface VirtualMachine.ForHotSpot.Connection.Factory
A factory for creating connections to virtual machines.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
A factory for attaching via a socket file.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.ForHotSpot.Connection
connect(java.lang.String processId)
Connects to the supplied process.
-
-
-
Method Detail
-
connect
VirtualMachine.ForHotSpot.Connection connect(java.lang.String processId) throws java.io.IOException
Connects to the supplied process.- Parameters:
processId
- The process id.- Returns:
- The connection to the virtual machine with the supplied process id.
- Throws:
java.io.IOException
- If an I/O exception occurs during connecting to the targeted VM.
-
-