|
||||||||||
| 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(ProcessorDefinition node,
Processor target,
TraceFormatter formatter,
Tracer tracer)
|
|
TraceInterceptor(ProcessorDefinition node,
Processor target,
Tracer tracer)
|
|
| Method Summary | |
|---|---|
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, proceed, processNext, setProcessor |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, getStatus, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, notStarting, 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 Processorprocess in class DelegateProcessorException - if an internal processing error has occurred.public Object format(Exchange exchange)
ExchangeFormatter
format in interface ExchangeFormatterexchange - the exchange
public ProcessorDefinition getNode()
public Logger getLogger()
public TraceFormatter getFormatter()
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 DelegateProcessorException
protected void doStop()
throws Exception
doStop in class DelegateProcessorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||