public class Main
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ADRESS_STRING |
private static java.lang.String |
hostname |
private static java.lang.Integer |
port |
private static java.lang.String |
PORT_STRING |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(java.lang.String args,
java.lang.instrument.Instrumentation inst)
This method only calls the premain
|
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
Premain method is executed when the agent is loaded.
|
private static final java.lang.String ADRESS_STRING
private static final java.lang.String PORT_STRING
private static java.lang.String hostname
private static java.lang.Integer port
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
agentArgs
- arguments with parameters for listenerinst
- instance of instrumentation of given VMpublic static void agentmain(java.lang.String args, java.lang.instrument.Instrumentation inst)
args
- arguments with parameters for listenerinst
- instance of instrumentation of given VM