public static class VirtualMachine.ForOpenJ9 extends Object implements VirtualMachine
| Modifier and Type | Class and Description |
|---|---|
static interface |
VirtualMachine.ForOpenJ9.Dispatcher
A dispatcher for native operations being used for communication with an OpenJ9 virtual machine.
|
VirtualMachine.ForHotSpot, VirtualMachine.ForOpenJ9, VirtualMachine.Resolver| Modifier | Constructor and Description |
|---|---|
protected |
ForOpenJ9(Socket socket)
Creates a new virtual machine connection for OpenJ9.
|
| Modifier and Type | Method and Description |
|---|---|
static VirtualMachine |
attach(String processId)
Attaches to the supplied process id using the default JNA implementation.
|
static VirtualMachine |
attach(String processId,
int timeout,
VirtualMachine.ForOpenJ9.Dispatcher dispatcher)
Attaches to the supplied process id.
|
void |
detach()
Detaches this virtual machine representation.
|
void |
loadAgent(String jarFile,
String argument)
Loads an agent into the represented virtual machine.
|
void |
loadAgentPath(String library,
String argument)
Loads a native agent into the represented virtual machine.
|
protected ForOpenJ9(Socket socket)
socket - The socket on which this VM and the target VM communicate.public static VirtualMachine attach(String processId) throws IOException
processId - The process id.IOException - If an IO exception occurs during establishing the connection.public static VirtualMachine attach(String processId, int timeout, VirtualMachine.ForOpenJ9.Dispatcher dispatcher) throws IOException
processId - The process id.timeout - The timeout for establishing the socket connection.dispatcher - The connector to use to communicate with the target VM.IOException - If an IO exception occurs during establishing the connection.public void loadAgent(String jarFile, String argument) throws IOException
loadAgent in interface VirtualMachinejarFile - The jar file to attach.argument - The argument to provide or null if no argument should be provided.IOException - If an I/O exception occurs.public void loadAgentPath(String library, String argument) throws IOException
loadAgentPath in interface VirtualMachinelibrary - The agent library.argument - The argument to provide or null if no argument should be provided.IOException - If an I/O exception occurs.public void detach()
throws IOException
detach in interface VirtualMachineIOException - If an I/O exception occurs.Copyright © 2014–2019. All rights reserved.