Package br.com.jarch.agent
Class SimplesAgent
- java.lang.Object
-
- br.com.jarch.agent.SimplesAgent
-
public class SimplesAgent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SimplesAgent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidagentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)If the agent is attached to an already running JVM, this method is invoked.static voidpremain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)If the agent is attached to a JVM on the start, this method is invoked beforemainmethod is called.
-
-
-
Method Detail
-
premain
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)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
public static void agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)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.
-
-