public class TracerService extends AbstractService
| Modifier and Type | Field and Description |
|---|---|
com.newrelic.agent.TracerService.ITracerService |
tracerServiceFactory |
logger| Constructor and Description |
|---|
TracerService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
PointCutInvocationHandler |
getInvocationHandler(int id)
Returns a InvocationHandler by id.
|
int |
getInvocationHandlerId(PointCutInvocationHandler handler)
Returns the id for a given handler to be injected into bytecode for a later call to
getInvocationHandler(int). |
Tracer |
getTracer(TracerFactory tracerFactory,
ClassMethodSignature signature,
java.lang.Object object,
java.lang.Object... args) |
TracerFactory |
getTracerFactory(java.lang.String tracerFactoryName) |
boolean |
isEnabled()
Is the service enabled.
|
void |
registerInvocationHandlers(java.util.List<PointCutInvocationHandler> handlers)
Registers the PointCutInvocationHandlers.
|
void |
registerTracerFactory(java.lang.String name,
TracerFactory tracerFactory) |
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic com.newrelic.agent.TracerService.ITracerService tracerServiceFactory
public Tracer getTracer(TracerFactory tracerFactory, ClassMethodSignature signature, java.lang.Object object, java.lang.Object... args)
public TracerFactory getTracerFactory(java.lang.String tracerFactoryName)
public void registerTracerFactory(java.lang.String name,
TracerFactory tracerFactory)
public void registerInvocationHandlers(java.util.List<PointCutInvocationHandler> handlers)
invocationHandlers array must be preserved.public int getInvocationHandlerId(PointCutInvocationHandler handler)
getInvocationHandler(int).
This is slow because we scan linearly for the factory, but this is only called when classes are being
instrumented.public PointCutInvocationHandler getInvocationHandler(int id)
protected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic boolean isEnabled()
Servicetrue if the service is enabled