Class Main
java.lang.Object
org.jrd.agent.Main
This class contains agent's premain and agentmain methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidagentmain(String args, Instrumentation inst) This method only calls the premainprivate static StringcheckLonelienss(String agentArgs) static voidderegister(String loneliness, String port) static booleanequalsOrMatching(ClassLoader candidate, String requested) static booleanequalsOrMatching(String candidate, String requested) static voidpremain(String agentArgs, Instrumentation inst) Premain method is executed when the agent is loaded.
-
Field Details
-
JRD_AGENT_LOADED
- See Also:
-
ADDRESS_STRING
- See Also:
-
PORT_STRING
- See Also:
-
LONELINESS_STRING
- See Also:
-
LONELINESS_VAL_S
- See Also:
-
LONELINESS_VAL_A
- See Also:
-
LONELINESS_VAL_F
- See Also:
-
LONELINESS_VAL_AF
- See Also:
-
confirmedAttaches
private static int confirmedAttaches -
COMPILED_LOADERS_PATTERNS
-
-
Constructor Details
-
Main
private Main()
-
-
Method Details
-
premain
Premain method is executed when the agent is loaded. It sets the port and host name from agentArgs and starts the listener thread.- Parameters:
agentArgs- arguments with parameters for listenerinst- instance of instrumentation of given VM- Throws:
Exception
-
agentmain
This method only calls the premain- Parameters:
args- arguments with parameters for listenerinst- instance of instrumentation of given VM- Throws:
Exception
-
deregister
-
checkLonelienss
-
equalsOrMatching
-
equalsOrMatching
-