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(package private) static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintattach(int pid, AgentConfig aconf) This method handles the attachment of a decompiler agent to given VM.static intattachImpl(int pid, AgentConfig aconf) private static String[]createProperties(int port) private static intfindPort()
-
Field Details
-
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
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
-
findPort
private static int findPort() -
createProperties
-