Package org.jboss.byteman.agent
Class Main
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description private static java.lang.String
ADDRESS_PREFIX
prefix used to specify bind address argument for agentprivate static java.lang.String
BOOT_PREFIX
prefix used to specify boot jar argument for agentprivate static java.util.List<java.lang.String>
bootJarPaths
list of paths to extra bootstrap jars supplied on command linestatic java.lang.String
BYTEMAN_AGENT_LOADED
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 agentprivate static java.lang.String
MANAGER_NAME
name of default manager class.private static java.lang.String
MANAGER_PREFIX
prefix used to specify the manager classprivate static java.lang.String
managerClassName
The name of the manager class responsible for loading/unloading scripts, supplied on the command line (optional argument)private static java.lang.String
MODULE_PREFIX
prefix used to specify the module system classprivate static java.lang.String
MODULE_SYSTEM_NAME
name of module system interface.private static java.lang.String
moduleSystemArgs
The arguments to the module system implementation class, supplied on the command line (optional argument)private static java.lang.String
moduleSystemName
The name of the module system implementation class, supplied on the command line (optional argument)private static java.lang.String
POLICY_PREFIX
prefix used to request installation of an access-all-areas security policy at install time for agent codeprivate 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 agentprivate static java.lang.String
PROP_PREFIX
prefix used to specify system properties to be set before starting the agentprivate static java.lang.String
REDEFINE_PREFIX
for backwards compatibiltiyprivate static java.lang.String
RESOURCE_SCRIPT_PREFIX
prefix used to specify resource script argument for agentprivate static java.util.List<java.lang.String>
resourcescriptPaths
list of paths to resource script files supplied on command lineprivate static java.lang.String
RETRANSFORMER_NAME
name of retransformer class.private static java.lang.String
SCRIPT_PREFIX
prefix used to specify file script argument for agentprivate static java.util.List<java.lang.String>
scriptPaths
list of paths to script files supplied on command lineprivate static java.util.List<java.lang.String>
scripts
list of scripts read from script filesprivate static java.lang.String
SYS_PREFIX
prefix used to specify system jar argument for agentprivate static java.util.List<java.lang.String>
sysJarPaths
list of paths to extra system jars supplied on command lineprivate static java.lang.String
TRANSFORMER_NAME
name of basic transformer class.
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
agentmain(java.lang.String args, java.lang.instrument.Instrumentation inst)
static void
premain(java.lang.String args, java.lang.instrument.Instrumentation inst)
-
-
-
Field Detail
-
firstTime
public static boolean firstTime
-
BYTEMAN_PREFIX
public static final java.lang.String BYTEMAN_PREFIX
- See Also:
- Constant Field Values
-
BYTEMAN_AGENT_LOADED
public static final java.lang.String BYTEMAN_AGENT_LOADED
- 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
-
POLICY_PREFIX
private static final java.lang.String POLICY_PREFIX
prefix used to request installation of an access-all-areas security policy at install time for agent code- See Also:
- Constant Field Values
-
SCRIPT_PREFIX
private static final java.lang.String SCRIPT_PREFIX
prefix used to specify file script argument for agent- See Also:
- Constant Field Values
-
RESOURCE_SCRIPT_PREFIX
private static final java.lang.String RESOURCE_SCRIPT_PREFIX
prefix used to specify resource 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
-
MANAGER_PREFIX
private static final java.lang.String MANAGER_PREFIX
prefix used to specify the manager class- See Also:
- Constant Field Values
-
MODULE_PREFIX
private static final java.lang.String MODULE_PREFIX
prefix used to specify the module system class- See Also:
- Constant Field Values
-
TRANSFORMER_NAME
private static final java.lang.String TRANSFORMER_NAME
name of basic transformer class.- See Also:
- Constant Field Values
-
RETRANSFORMER_NAME
private static final java.lang.String RETRANSFORMER_NAME
name of retransformer class.- See Also:
- Constant Field Values
-
MANAGER_NAME
private static final java.lang.String MANAGER_NAME
name of default manager class.- See Also:
- Constant Field Values
-
MODULE_SYSTEM_NAME
private static final java.lang.String MODULE_SYSTEM_NAME
name of module system interface.- 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
-
resourcescriptPaths
private static java.util.List<java.lang.String> resourcescriptPaths
list of paths to resource 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)
-
managerClassName
private static java.lang.String managerClassName
The name of the manager class responsible for loading/unloading scripts, supplied on the command line (optional argument)
-
moduleSystemName
private static java.lang.String moduleSystemName
The name of the module system implementation class, supplied on the command line (optional argument)
-
moduleSystemArgs
private static java.lang.String moduleSystemArgs
The arguments to the module system implementation class, supplied on the command line (optional argument)
-
-
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
-
-