|
||||||||||
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)
|
String |
toString()
|
Processor |
wrapProcessorInInterceptors(ProcessorDefinition processorDefinition,
Processor target,
Processor nextTarget)
This method is invoked by ProcessorDefinition.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, 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(ProcessorDefinition processorDefinition, Processor target, Processor nextTarget) throws Exception
InterceptStrategy
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
wrapProcessorInInterceptors
in interface InterceptStrategy
processorDefinition
- the object that invokes this methodtarget
- the processor to be wrappednextTarget
- the next processor to be routed to
Exception
- can be thrownprotected List<Exchange> createExchangeList()
protected List<ExceptionEvent> createExceptionsList()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |