org.jboss.byteman.agent
Class Main

java.lang.Object
  extended by org.jboss.byteman.agent.Main

public class Main
extends java.lang.Object

agent class supplied at JVM startup to install byteman package bytecode transformer


Field Summary
private static java.lang.String ADDRESS_PREFIX
          prefix used to specify bind address argument for agent
private static java.lang.String BOOT_PREFIX
          prefix used to specify boot jar argument for agent
private static java.util.List<java.lang.String> bootJarPaths
          list of paths to extra bootstrap jars supplied on command line
static java.lang.String BYTEMAN_PREFIX
           
static boolean firstTime
           
private static java.lang.String hostname
          The hostname to bind the listener to, supplied on the command line (optional argument)
private static java.lang.String LISTENER_PREFIX
          prefix used to specify transformer type argument for agent
private static java.lang.Integer port
          The port that the listener will listen to, supplied on the command line (optional argument)
private static java.lang.String PORT_PREFIX
          prefix used to specify port argument for agent
private static java.lang.String PROP_PREFIX
          prefix used to specify system properties to be set before starting the agent
private static java.lang.String REDEFINE_PREFIX
          for backwards compatibiltiy
private static java.lang.String SCRIPT_PREFIX
          prefix used to specify script argument for agent
private static java.util.List<java.lang.String> scriptPaths
          list of paths to script files supplied on command line
private static java.util.List<java.lang.String> scripts
          list of scripts read from script files
private static java.lang.String SYS_PREFIX
          prefix used to specify system jar argument for agent
private static java.util.List<java.lang.String> sysJarPaths
          list of paths to extra system jars supplied on command line
 
Constructor Summary
Main()
           
 
Method Summary
static void agentmain(java.lang.String args, java.lang.instrument.Instrumentation inst)
           
static void premain(java.lang.String args, java.lang.instrument.Instrumentation inst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstTime

public static boolean firstTime

BYTEMAN_PREFIX

public static final java.lang.String BYTEMAN_PREFIX
See Also:
Constant Field Values

PORT_PREFIX

private static final java.lang.String PORT_PREFIX
prefix used to specify port argument for agent

See Also:
Constant Field Values

ADDRESS_PREFIX

private static final java.lang.String ADDRESS_PREFIX
prefix used to specify bind address argument for agent

See Also:
Constant Field Values

BOOT_PREFIX

private static final java.lang.String BOOT_PREFIX
prefix used to specify boot jar argument for agent

See Also:
Constant Field Values

SYS_PREFIX

private static final java.lang.String SYS_PREFIX
prefix used to specify system jar argument for agent

See Also:
Constant Field Values

SCRIPT_PREFIX

private static final java.lang.String SCRIPT_PREFIX
prefix used to specify script argument for agent

See Also:
Constant Field Values

LISTENER_PREFIX

private static final java.lang.String LISTENER_PREFIX
prefix used to specify transformer type argument for agent

See Also:
Constant Field Values

REDEFINE_PREFIX

private static final java.lang.String REDEFINE_PREFIX
for backwards compatibiltiy

See Also:
Constant Field Values

PROP_PREFIX

private static final java.lang.String PROP_PREFIX
prefix used to specify system properties to be set before starting the agent

See Also:
Constant Field Values

bootJarPaths

private static java.util.List<java.lang.String> bootJarPaths
list of paths to extra bootstrap jars supplied on command line


sysJarPaths

private static java.util.List<java.lang.String> sysJarPaths
list of paths to extra system jars supplied on command line


scriptPaths

private static java.util.List<java.lang.String> scriptPaths
list of paths to script files supplied on command line


scripts

private static java.util.List<java.lang.String> scripts
list of scripts read from script files


hostname

private static java.lang.String hostname
The hostname to bind the listener to, supplied on the command line (optional argument)


port

private static java.lang.Integer port
The port that the listener will listen to, supplied on the command line (optional argument)

Constructor Detail

Main

public Main()
Method Detail

premain

public static void premain(java.lang.String args,
                           java.lang.instrument.Instrumentation inst)
                    throws java.lang.Exception
Throws:
java.lang.Exception

agentmain

public static void agentmain(java.lang.String args,
                             java.lang.instrument.Instrumentation inst)
                      throws java.lang.Exception
Throws:
java.lang.Exception