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 void
agentmain
(String args, Instrumentation inst) This method only calls the premain(package private) static String
(package private) static Integer
getPort()
static void
premain
(String agentArgs, Instrumentation inst) Premain method is executed when the agent is loaded.static void
setFirstTime
(boolean b)
-
Field Details
-
JRD_AGENT_LOADED
- See Also:
-
ADDRESS_STRING
- See Also:
-
PORT_STRING
- See Also:
-
hostname
-
port
-
firstTime
private static boolean firstTime
-
-
Constructor Details
-
Main
private Main()
-
-
Method Details
-
getHostname
-
getPort
-
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
-
setFirstTime
public static void setFirstTime(boolean b)
-