jrunx.instrument
Class InstrumentationService
jrunx.kernel.ServiceAdapter
|
+--jrunx.kernel.ServicePartition
|
+--jrunx.kernel.ConfigurableServicePartition
|
+--jrunx.instrument.InstrumentationService
- All Implemented Interfaces:
- ConfigurableServicePartitionMBean, InstrumentationServiceMBean, Instrumentor, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
- public class InstrumentationService
- extends ConfigurableServicePartition
- implements InstrumentationServiceMBean
- See Also:
- Serialized Form
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
|
Method Summary |
static InstrumentationService |
getInstrumentationService()
Factory method for getting the instrumentor. |
byte[] |
instrument(java.lang.String name,
byte[] bytes,
java.lang.ClassLoader loader)
Instrument the bytes of the class file. |
void |
start()
Every service other than mere data collections should start |
void |
stop()
Every service other than mere data collections should stop |
| Methods inherited from class jrunx.kernel.ServiceAdapter |
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
instrumentors
protected java.util.List instrumentors
instrumentationService
protected static InstrumentationService instrumentationService
InstrumentationService
public InstrumentationService()
start
public void start()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should start
- Specified by:
start in interface Service- Overrides:
start in class ConfigurableServicePartition
stop
public void stop()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should stop
- Specified by:
stop in interface Service- Overrides:
stop in class ConfigurableServicePartition
instrument
public byte[] instrument(java.lang.String name,
byte[] bytes,
java.lang.ClassLoader loader)
throws java.io.IOException
- Description copied from interface:
Instrumentor
- Instrument the bytes of the class file.
- Specified by:
instrument in interface Instrumentor
- Following copied from interface:
jrunx.instrument.Instrumentor
- Parameters:
name - The class namebytes - The class bytesloader - The ClassLoader that loaded the class- Returns:
- The (potentially) modified class
getInstrumentationService
public static InstrumentationService getInstrumentationService()
- Factory method for getting the instrumentor. Only valid after the InstrumentationService
has been started
Copyright � 2002 Macromedia Corporation. All Rights Reserved.