Package org.jrd.agent
Class Main
- java.lang.Object
-
- org.jrd.agent.Main
-
public class Main extends Object
This class contains agent's premain and agentmain methods.- Author:
- pmikova
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
agentmain(String args, Instrumentation inst)
This method only calls the premainstatic void
premain(String agentArgs, Instrumentation inst)
Premain method is executed when the agent is loaded.
-
-
-
Method Detail
-
premain
public static void premain(String agentArgs, Instrumentation inst)
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
public static void agentmain(String args, Instrumentation inst)
This method only calls the premain- Parameters:
args
- arguments with parameters for listenerinst
- instance of instrumentation of given VM
-
-