|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.processor.interceptor.Tracer
public class Tracer
An interceptor strategy for tracing routes
Constructor Summary | |
---|---|
Tracer()
|
Method Summary | |
---|---|
TraceFormatter |
getFormatter()
|
LoggingLevel |
getLogLevel()
|
String |
getLogName()
|
Predicate |
getTraceFilter()
|
static Tracer |
getTracer(CamelContext context)
A helper method to return the Tracer instance for a given CamelContext if one is enabled |
boolean |
isEnabled()
|
boolean |
isTraceExceptions()
|
boolean |
isTraceInterceptors()
|
boolean |
isTraceOutExchanges()
|
void |
setEnabled(boolean flag)
|
void |
setFormatter(TraceFormatter formatter)
|
void |
setLogLevel(LoggingLevel logLevel)
Sets the logging level to output tracing. |
void |
setLogName(String logName)
Sets the logging name to use. |
void |
setTraceExceptions(boolean traceExceptions)
Sets whether thrown exceptions should be traced |
void |
setTraceFilter(Predicate traceFilter)
Sets a predicate to be used as filter when tracing |
void |
setTraceInterceptors(boolean traceInterceptors)
Sets whether interceptors should be traced or not |
void |
setTraceOutExchanges(boolean traceOutExchanges)
Sets whether exchanges coming out of processors should be traced |
Processor |
wrapProcessorInInterceptors(ProcessorType processorType,
Processor target)
This method is invoked by ProcessorType.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tracer()
Method Detail |
---|
public static Tracer getTracer(CamelContext context)
CamelContext
if one is enabled
context
- the camel context the tracer is connected to
public Processor wrapProcessorInInterceptors(ProcessorType processorType, Processor target) throws Exception
InterceptStrategy
ProcessorType.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
wrapProcessorInInterceptors
in interface InterceptStrategy
processorType
- the object that invokes this methodtarget
- the processor to be wrapped
Exception
- can be thrownpublic TraceFormatter getFormatter()
public void setFormatter(TraceFormatter formatter)
public void setEnabled(boolean flag)
public boolean isEnabled()
public boolean isTraceInterceptors()
public void setTraceInterceptors(boolean traceInterceptors)
public Predicate getTraceFilter()
public void setTraceFilter(Predicate traceFilter)
public LoggingLevel getLogLevel()
public void setLogLevel(LoggingLevel logLevel)
public boolean isTraceExceptions()
public void setTraceExceptions(boolean traceExceptions)
public String getLogName()
public void setLogName(String logName)
public void setTraceOutExchanges(boolean traceOutExchanges)
public boolean isTraceOutExchanges()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |