Package br.com.jarch.agent
Class SimplesAgent
java.lang.Object
br.com.jarch.agent.SimplesAgent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidagentmain(String agentArgs, Instrumentation inst) If the agent is attached to an already running JVM, this method is invoked.static voidpremain(String agentArgs, Instrumentation inst) If the agent is attached to a JVM on the start, this method is invoked beforemainmethod is called.
-
Constructor Details
-
SimplesAgent
public SimplesAgent()
-
-
Method Details
-
premain
If the agent is attached to a JVM on the start, this method is invoked beforemainmethod is called.- Parameters:
agentArgs- Agent command line arguments.inst- An object to access the JVM instrumentation mechanism.
-
agentmain
If the agent is attached to an already running JVM, this method is invoked.- Parameters:
agentArgs- Agent command line arguments.inst- An object to access the JVM instrumentation mechanism.
-