Package org.jrd.backend.core
Class AgentLoader
- java.lang.Object
-
- org.jrd.backend.core.AgentLoader
-
public class AgentLoader extends java.lang.Object
This class contains methods for attaching the agent.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
AGENT_PORT_PROPERTY
(package private) static int
INVALID_PORT
private static int
MAX_PORT_SLOTS
private static int
PORT_MAX
private static int
PORT_MIN
-
Constructor Summary
Constructors Constructor Description AgentLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
attach(int pid)
This method handles the attachment of a decompiler agent to given VM.private java.lang.String[]
createProperties(int port)
private int
findPort()
-
-
-
Field Detail
-
INVALID_PORT
static final int INVALID_PORT
- See Also:
- Constant Field Values
-
PORT_MIN
private static final int PORT_MIN
- See Also:
- Constant Field Values
-
MAX_PORT_SLOTS
private static final int MAX_PORT_SLOTS
- See Also:
- Constant Field Values
-
PORT_MAX
private static final int PORT_MAX
- See Also:
- Constant Field Values
-
AGENT_PORT_PROPERTY
private static final java.lang.String AGENT_PORT_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
attach
public int attach(int pid)
This method handles the attachment of a decompiler agent to given VM.- Parameters:
pid
- PID of the VM- Returns:
- port number if successful, else
INVALID_PORT
-
findPort
private int findPort()
-
createProperties
private java.lang.String[] createProperties(int port)
-
-