public class DefaultTraceEventHandler extends Object implements TraceEventHandler, Service
| Constructor and Description |
|---|
DefaultTraceEventHandler(Tracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Starts the service
|
void |
stop()
Stops the service
|
void |
traceExchange(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
Event called when an
Exchange is about to be processed
This event is only called if trace out has been disabled (which it is by default). |
Object |
traceExchangeIn(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
Event called when an
Exchange is about to be processed (in)
This event is only called if trace out has been enabled. |
void |
traceExchangeOut(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange,
Object traceState)
Event called when an
Exchange has been processed (out)
This event is only called if trace out has been enabled. |
public DefaultTraceEventHandler(Tracer tracer)
public void traceExchange(ProcessorDefinition<?> node, Processor target, TraceInterceptor traceInterceptor, Exchange exchange) throws Exception
TraceEventHandlerExchange is about to be processed
This event is only called if trace out has been disabled (which it is by default).
This method is for coarse grained tracing, where as the the other two methods is for fine grained
with in and event events.traceExchange in interface TraceEventHandlernode - the current nodetarget - the current processor being invokedtraceInterceptor - the trace interceptorexchange - the current exchangeException - is thrown if an error occurred during tracingpublic Object traceExchangeIn(ProcessorDefinition<?> node, Processor target, TraceInterceptor traceInterceptor, Exchange exchange) throws Exception
TraceEventHandlerExchange is about to be processed (in)
This event is only called if trace out has been enabled.traceExchangeIn in interface TraceEventHandlernode - the current nodetarget - the current processor being invokedtraceInterceptor - the trace interceptorexchange - the current exchangeException - is thrown if an error occurred during tracingpublic void traceExchangeOut(ProcessorDefinition<?> node, Processor target, TraceInterceptor traceInterceptor, Exchange exchange, Object traceState) throws Exception
TraceEventHandlerExchange has been processed (out)
This event is only called if trace out has been enabled.traceExchangeOut in interface TraceEventHandlernode - the current nodetarget - the current processor being invokedtraceInterceptor - the trace interceptorexchange - the current exchange (contains exception if the processing failed with an exception)traceState - the optional object which was returned from the traceEventIn method.Exception - is thrown if an error occurred during tracingpublic void start()
throws Exception
ServiceApache Camel