org.apache.camel.management.mbean
Class JMXNotificationTraceEventHandler
java.lang.Object
org.apache.camel.management.mbean.JMXNotificationTraceEventHandler
- All Implemented Interfaces:
- NotificationSenderAware, TraceEventHandler
public final class JMXNotificationTraceEventHandler
- extends Object
- implements TraceEventHandler, NotificationSenderAware
Method Summary |
void |
setNotificationSender(NotificationSender sender)
NotificationSender to use for sending notifications. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXNotificationTraceEventHandler
public JMXNotificationTraceEventHandler(Tracer tracer)
traceExchangeOut
public void traceExchangeOut(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange,
Object traceState)
throws Exception
- Description copied from interface:
TraceEventHandler
- Event called when an
Exchange
has been processed (out)
This event is only called if trace out has been enabled.
- Specified by:
traceExchangeOut
in interface TraceEventHandler
- Parameters:
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.
- Throws:
Exception
- is thrown if an error occurred during tracing
traceExchangeIn
public Object traceExchangeIn(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
throws Exception
- Description copied from interface:
TraceEventHandler
- Event called when an
Exchange
is about to be processed (in)
This event is only called if trace out has been enabled.
- Specified by:
traceExchangeIn
in interface TraceEventHandler
- Parameters:
node
- the current nodetarget
- the current processor being invokedtraceInterceptor
- the trace interceptorexchange
- the current exchange
- Returns:
- an optional return object to pass in the traceEventOut method.
- Throws:
Exception
- is thrown if an error occurred during tracing
traceExchange
public void traceExchange(ProcessorDefinition<?> node,
Processor target,
TraceInterceptor traceInterceptor,
Exchange exchange)
throws Exception
- Description copied from interface:
TraceEventHandler
- 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).
This method is for coarse grained tracing, where as the the other two methods is for fine grained
with in and event events.
- Specified by:
traceExchange
in interface TraceEventHandler
- Parameters:
node
- the current nodetarget
- the current processor being invokedtraceInterceptor
- the trace interceptorexchange
- the current exchange
- Throws:
Exception
- is thrown if an error occurred during tracing
setNotificationSender
public void setNotificationSender(NotificationSender sender)
- Description copied from interface:
NotificationSenderAware
NotificationSender
to use for sending notifications.
- Specified by:
setNotificationSender
in interface NotificationSenderAware
- Parameters:
sender
- sender to use for sending notifications
Apache CAMEL