Package org.jrd.backend.core
Class AgentLoader
java.lang.Object
org.jrd.backend.core.AgentLoader
This class contains methods for attaching the agent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static AgentConfig
(package private) static final int
private static final int
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
attach
(int pid) This method handles the attachment of a decompiler agent to given VM.private String[]
createProperties
(int port) private int
findPort()
static AgentConfig
static void
setDefaultConfig
(AgentConfig defaultConfig)
-
Field Details
-
defaultConfig
-
INVALID_PORT
static final int INVALID_PORT- See Also:
-
PORT_MIN
private static final int PORT_MIN- See Also:
-
MAX_PORT_SLOTS
private static final int MAX_PORT_SLOTS- See Also:
-
PORT_MAX
private static final int PORT_MAX- See Also:
-
AGENT_PORT_PROPERTY
- See Also:
-
-
Constructor Details
-
AgentLoader
AgentLoader()
-
-
Method Details
-
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
-
setDefaultConfig
-
getDefaultConfig
-