|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TraceEventHandler
A handler which reacts on trace events.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void traceExchange(ProcessorDefinition<?> node, Processor target, TraceInterceptor traceInterceptor, Exchange exchange) throws Exception
Exchange
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.
node
- the current nodetarget
- the current processor being invokedtraceInterceptor
- the trace interceptorexchange
- the current exchange
Exception
- is thrown if an error occurred during tracingObject traceExchangeIn(ProcessorDefinition<?> node, Processor target, TraceInterceptor traceInterceptor, Exchange exchange) throws Exception
Exchange
is about to be processed (in)
This event is only called if trace out has been enabled.
node
- the current nodetarget
- the current processor being invokedtraceInterceptor
- the trace interceptorexchange
- the current exchange
Exception
- is thrown if an error occurred during tracingvoid traceExchangeOut(ProcessorDefinition<?> node, Processor target, TraceInterceptor traceInterceptor, Exchange exchange, Object traceState) throws Exception
Exchange
has been processed (out)
This event is only called if trace out has been enabled.
node
- 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 tracing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |