Package org.jrd.agent
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 premainstatic voidpremain(String agentArgs, Instrumentation inst) Premain method is executed when the agent is loaded.
-
Field Details
-
ADDRESS_STRING
- See Also:
-
PORT_STRING
- See Also:
-
hostname
-
port
-
-
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
-
agentmain
This method only calls the premain- Parameters:
args- arguments with parameters for listenerinst- instance of instrumentation of given VM
-