|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.ServiceSupport org.apache.camel.processor.DelegateProcessor org.apache.camel.processor.interceptor.TraceInterceptor
public class TraceInterceptor
An interceptor for debugging and tracing routes
Field Summary |
---|
Fields inherited from class org.apache.camel.processor.DelegateProcessor |
---|
processor |
Constructor Summary | |
---|---|
TraceInterceptor(ProcessorDefinition node,
Processor target,
TraceFormatter formatter,
Tracer tracer)
|
|
TraceInterceptor(ProcessorDefinition node,
Processor target,
Tracer tracer)
|
Method Summary | |
---|---|
protected boolean |
afterIntercept(InterceptDefinition interceptr,
TraceableUnitOfWork tuow,
Exchange exchange)
|
protected boolean |
beforeOnCompletion(OnCompletionDefinition onCompletion,
TraceableUnitOfWork tuow,
Exchange exchange)
|
protected boolean |
beforeOnException(OnExceptionDefinition onException,
TraceableUnitOfWork tuow,
Exchange exchange)
|
protected void |
doStart()
|
protected void |
doStop()
|
Object |
format(Exchange exchange)
Generates a string representation of the exchange |
TraceFormatter |
getFormatter()
|
Logger |
getLogger()
|
ProcessorDefinition |
getNode()
|
protected void |
logException(Exchange exchange,
Throwable throwable)
|
protected void |
logExchange(Exchange exchange)
|
void |
process(Exchange exchange)
Processes the message exchange |
protected boolean |
shouldLogException(Exchange exchange)
Returns true if the given exchange should be logged when an exception was thrown |
protected boolean |
shouldLogExchange(Exchange exchange)
Returns true if the given exchange should be logged in the trace list |
protected boolean |
shouldLogNode(ProcessorDefinition node)
Returns true if the given node should be logged in the trace list |
boolean |
shouldTraceOutExchanges()
Returns whether exchanges coming out of processors should be traced |
String |
toString()
|
protected void |
traceExchange(Exchange exchange)
|
Methods inherited from class org.apache.camel.processor.DelegateProcessor |
---|
getProcessor, hasNext, next, proceed, processNext, setProcessor |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TraceInterceptor(ProcessorDefinition node, Processor target, TraceFormatter formatter, Tracer tracer)
public TraceInterceptor(ProcessorDefinition node, Processor target, Tracer tracer)
Method Detail |
---|
public String toString()
toString
in class DelegateProcessor
public void process(Exchange exchange) throws Exception
Processor
process
in interface Processor
process
in class DelegateProcessor
exchange
- the message exchange
Exception
- if an internal processing error has occurred.public Object format(Exchange exchange)
ExchangeFormatter
format
in interface ExchangeFormatter
exchange
- the exchange
public ProcessorDefinition getNode()
public Logger getLogger()
public TraceFormatter getFormatter()
protected boolean beforeOnException(OnExceptionDefinition onException, TraceableUnitOfWork tuow, Exchange exchange) throws Exception
Exception
protected boolean beforeOnCompletion(OnCompletionDefinition onCompletion, TraceableUnitOfWork tuow, Exchange exchange) throws Exception
Exception
protected boolean afterIntercept(InterceptDefinition interceptr, TraceableUnitOfWork tuow, Exchange exchange) throws Exception
Exception
protected void logExchange(Exchange exchange)
protected void traceExchange(Exchange exchange) throws Exception
Exception
protected void logException(Exchange exchange, Throwable throwable)
protected boolean shouldLogExchange(Exchange exchange)
protected boolean shouldLogException(Exchange exchange)
public boolean shouldTraceOutExchanges()
protected boolean shouldLogNode(ProcessorDefinition node)
protected void doStart() throws Exception
doStart
in class DelegateProcessor
Exception
protected void doStop() throws Exception
doStop
in class DelegateProcessor
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |