Package org.jrd.backend.core
Class AgentLoader
- java.lang.Object
-
- org.jrd.backend.core.AgentLoader
-
public class AgentLoader extends java.lang.ObjectThis class contains methods for attaching the agent.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringAGENT_PORT_PROPERTY(package private) static intINVALID_PORTprivate static intMAX_PORT_SLOTSprivate static intPORT_MAXprivate static intPORT_MIN
-
Constructor Summary
Constructors Constructor Description AgentLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattach(int pid, AgentConfig aconf)This method handles the attachment of a decompiler agent to given VM.static intattachImpl(int pid, AgentConfig aconf)private static java.lang.String[]createProperties(int port)private static intfindPort()
-
-
-
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, AgentConfig aconf)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
-
attachImpl
public static int attachImpl(int pid, AgentConfig aconf)
-
findPort
private static int findPort()
-
createProperties
private static java.lang.String[] createProperties(int port)
-
-