|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(ProcessorType node,
Processor target,
TraceFormatter formatter)
Deprecated. will be removed in Camel 2.0 |
|
TraceInterceptor(ProcessorType node,
Processor target,
TraceFormatter formatter,
Tracer tracer)
|
|
TraceInterceptor(ProcessorType node,
Processor target,
Tracer tracer)
|
Method Summary | |
---|---|
Object |
format(Exchange exchange)
Generates a string representation of the exchange |
TraceFormatter |
getFormatter()
|
Logger |
getLogger()
|
ProcessorType |
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(ProcessorType 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()
|
Methods inherited from class org.apache.camel.processor.DelegateProcessor |
---|
doStart, doStop, getProcessor, proceed, processNext, setProcessor |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TraceInterceptor(ProcessorType node, Processor target, TraceFormatter formatter, Tracer tracer)
public TraceInterceptor(ProcessorType node, Processor target, TraceFormatter formatter)
public TraceInterceptor(ProcessorType 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
Exception
- if an internal processing error has occurred.public Object format(Exchange exchange)
ExchangeFormatter
format
in interface ExchangeFormatter
public ProcessorType getNode()
public Logger getLogger()
public TraceFormatter getFormatter()
protected void logExchange(Exchange exchange)
protected void logException(Exchange exchange, Throwable throwable)
protected boolean shouldLogExchange(Exchange exchange)
protected boolean shouldLogException(Exchange exchange)
public boolean shouldTraceOutExchanges()
protected boolean shouldLogNode(ProcessorType node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |