public static class VirtualMachine.ForOpenJ9 extends VirtualMachine.AbstractBase
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.AbstractBase, 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.
|
Properties |
getAgentProperties()
Loads the target VMs agent properties.
|
Properties |
getSystemProperties()
Loads the target VMs system properties.
|
void |
loadAgent(String jarFile,
String argument)
Loads an agent into the represented virtual machine.
|
void |
loadAgentLibrary(String library,
String argument)
Loads a native agent library into the represented virtual machine.
|
void |
loadAgentPath(String path,
String argument)
Loads a native agent into the represented virtual machine.
|
String |
startLocalManagementAgent()
Starts a local management agent.
|
void |
startManagementAgent(Properties properties)
Starts a JMX management agent.
|
loadAgent, loadAgentLibrary, loadAgentPath
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 Properties getSystemProperties() throws IOException
IOException
- If an I/O exception occurs.public Properties getAgentProperties() throws IOException
IOException
- If an I/O exception occurs.public void loadAgent(String jarFile, @MaybeNull String argument) throws IOException
jarFile
- 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 path, @MaybeNull String argument) throws IOException
path
- The agent path.argument
- The argument to provide or null
if no argument should be provided.IOException
- If an I/O exception occurs.public void loadAgentLibrary(String library, @MaybeNull String argument) throws IOException
library
- 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 startManagementAgent(Properties properties) throws IOException
properties
- The properties to transfer to the JMX agent.IOException
- If an I/O error occurs.public String startLocalManagementAgent() throws IOException
IOException
- If an I/O error occurs.public void detach() throws IOException
IOException
- If an I/O exception occurs.Copyright © 2014–2024. All rights reserved.