public interface Debugger extends Service, CamelContextAware
Exchange
s is being
routed.Modifier and Type | Method and Description |
---|---|
void |
activateAllBreakpoints()
Activate all breakpoints.
|
void |
addBreakpoint(Breakpoint breakpoint)
Add the given breakpoint
|
void |
addBreakpoint(Breakpoint breakpoint,
Condition... conditions)
Add the given breakpoint
|
void |
addSingleStepBreakpoint(Breakpoint breakpoint)
Add the given breakpoint which will be used in single step mode
The debugger will single step the first message arriving.
|
void |
addSingleStepBreakpoint(Breakpoint breakpoint,
Condition... conditions)
Add the given breakpoint which will be used in single step mode
The debugger will single step the first message arriving.
|
boolean |
afterProcess(Exchange exchange,
Processor processor,
NamedNode definition,
long timeTaken)
Callback invoked when an
Exchange has been processed which allows implementators to notify breakpoints. |
boolean |
beforeProcess(Exchange exchange,
Processor processor,
NamedNode definition)
Callback invoked when an
Exchange is about to be processed which allows implementators to notify
breakpoints. |
List<Breakpoint> |
getBreakpoints()
Gets a list of all the breakpoints
|
boolean |
onEvent(Exchange exchange,
CamelEvent.ExchangeEvent event)
Callback invoked when an
Exchange is being processed which allows implementators to notify breakpoints. |
void |
removeBreakpoint(Breakpoint breakpoint)
Removes the given breakpoint
|
boolean |
startSingleStepExchange(String exchangeId,
Breakpoint breakpoint)
Starts the single step debug mode for the given exchange
|
void |
stopSingleStepExchange(String exchangeId)
Stops the single step debug mode for the given exchange.
|
void |
suspendAllBreakpoints()
Suspends all breakpoints.
|
getCamelContext, setCamelContext, trySetCamelContext
void addBreakpoint(Breakpoint breakpoint)
breakpoint
- the breakpointvoid addBreakpoint(Breakpoint breakpoint, Condition... conditions)
breakpoint
- the breakpointconditions
- a number of Condition
svoid addSingleStepBreakpoint(Breakpoint breakpoint)
breakpoint
- the breakpointvoid addSingleStepBreakpoint(Breakpoint breakpoint, Condition... conditions)
breakpoint
- the breakpointconditions
- a number of Condition
svoid removeBreakpoint(Breakpoint breakpoint)
breakpoint
- the breakpointvoid suspendAllBreakpoints()
void activateAllBreakpoints()
List<Breakpoint> getBreakpoints()
boolean startSingleStepExchange(String exchangeId, Breakpoint breakpoint)
exchangeId
- the exchange idbreakpoint
- the breakpointvoid stopSingleStepExchange(String exchangeId)
exchangeId
- the exchange idboolean beforeProcess(Exchange exchange, Processor processor, NamedNode definition)
Exchange
is about to be processed which allows implementators to notify
breakpoints.exchange
- the exchangeprocessor
- the Processor
about to be processeddefinition
- the definition of the processorboolean afterProcess(Exchange exchange, Processor processor, NamedNode definition, long timeTaken)
Exchange
has been processed which allows implementators to notify breakpoints.exchange
- the exchangeprocessor
- the Processor
which was processeddefinition
- the definition of the processortimeTaken
- time in millis it took to process the Exchange
- time spend in breakpoint callbacks
may affect this timeboolean onEvent(Exchange exchange, CamelEvent.ExchangeEvent event)
Exchange
is being processed which allows implementators to notify breakpoints.exchange
- the exchangeevent
- the event (instance of CamelEvent.ExchangeEvent
Apache Camel