|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.processor.interceptor.Debugger
public class Debugger
An interceptor strategy for debugging and tracing routes
Constructor Summary | |
---|---|
Debugger()
|
Method Summary | |
---|---|
protected List<ExceptionEvent> |
createExceptionsList()
|
protected List<Exchange> |
createExchangeList()
|
Breakpoint |
getBreakpoint(String id)
Returns the breakpoint object for the given node in the DSL |
static Debugger |
getDebugger(CamelContext context)
A helper method to return the debugger instance for a given CamelContext if one is enabled |
List<Exchange> |
getExchanges(String id)
Returns the list of exchanges sent to the given node in the DSL |
DebugInterceptor |
getInterceptor(String id)
|
TraceFormatter |
getTraceFormatter()
|
boolean |
isEnabled()
|
void |
setEnable(boolean flag)
|
void |
setLogExchanges(boolean flag)
|
void |
setTraceFormatter(TraceFormatter formatter)
|
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 Debugger()
Method Detail |
---|
public static Debugger getDebugger(CamelContext context)
CamelContext
if one is enabled
context
- the camel context the debugger is connected to
public DebugInterceptor getInterceptor(String id)
public List<Exchange> getExchanges(String id)
public void setEnable(boolean flag)
public boolean isEnabled()
public Breakpoint getBreakpoint(String id)
public TraceFormatter getTraceFormatter()
public void setTraceFormatter(TraceFormatter formatter)
public void setLogExchanges(boolean flag)
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 thrownprotected List<Exchange> createExchangeList()
protected List<ExceptionEvent> createExceptionsList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |