|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultDebugger
public class DefaultDebugger
The default implementation of the Debugger.
| Constructor Summary | |
|---|---|
DefaultDebugger()
|
|
DefaultDebugger(CamelContext camelContext)
|
|
| Method Summary | |
|---|---|
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,
ProcessorDefinition definition,
long timeTaken)
Callback invoked when an Exchange has been processed which allows implementators
to notify breakpoints. |
boolean |
beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition 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 |
CamelContext |
getCamelContext()
Get the CamelContext |
protected void |
onAfterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition,
long timeTaken,
Breakpoint breakpoint)
|
protected void |
onBeforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition,
Breakpoint breakpoint)
|
boolean |
onEvent(Exchange exchange,
EventObject event)
Callback invoked when an Exchange is being processed which allows implementators
to notify breakpoints. |
protected void |
onEvent(Exchange exchange,
EventObject event,
Breakpoint breakpoint)
|
void |
removeBreakpoint(Breakpoint breakpoint)
Removes the given breakpoint |
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
void |
start()
Starts the service |
boolean |
startSingleStepExchange(String exchangeId,
Breakpoint breakpoint)
Starts the single step debug mode for the given exchange |
void |
stop()
Stops the service |
void |
stopSingleStepExchange(String exchangeId)
Stops the single step debug mode for the given exchange. |
void |
suspendAllBreakpoints()
Suspends all breakpoints. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDebugger()
public DefaultDebugger(CamelContext camelContext)
| Method Detail |
|---|
public CamelContext getCamelContext()
CamelContextAwareCamelContext
getCamelContext in interface CamelContextAwarepublic void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContext
setCamelContext in interface CamelContextAwarecamelContext - the Camel contextpublic void addBreakpoint(Breakpoint breakpoint)
Debugger
addBreakpoint in interface Debuggerbreakpoint - the breakpoint
public void addBreakpoint(Breakpoint breakpoint,
Condition... conditions)
Debugger
addBreakpoint in interface Debuggerbreakpoint - the breakpointconditions - a number of Conditionspublic void addSingleStepBreakpoint(Breakpoint breakpoint)
Debugger
addSingleStepBreakpoint in interface Debuggerbreakpoint - the breakpoint
public void addSingleStepBreakpoint(Breakpoint breakpoint,
Condition... conditions)
Debugger
addSingleStepBreakpoint in interface Debuggerbreakpoint - the breakpointconditions - a number of Conditionspublic void removeBreakpoint(Breakpoint breakpoint)
Debugger
removeBreakpoint in interface Debuggerbreakpoint - the breakpointpublic void suspendAllBreakpoints()
Debugger
suspendAllBreakpoints in interface Debuggerpublic void activateAllBreakpoints()
Debugger
activateAllBreakpoints in interface Debuggerpublic List<Breakpoint> getBreakpoints()
Debugger
getBreakpoints in interface Debugger
public boolean startSingleStepExchange(String exchangeId,
Breakpoint breakpoint)
Debugger
startSingleStepExchange in interface DebuggerexchangeId - the exchange idbreakpoint - the breakpoint
public void stopSingleStepExchange(String exchangeId)
Debugger
stopSingleStepExchange in interface DebuggerexchangeId - the exchange id
public boolean beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition)
DebuggerExchange is about to be processed which allows implementators
to notify breakpoints.
beforeProcess in interface Debuggerexchange - the exchangeprocessor - the Processor about to be processeddefinition - the definition of the processor
public boolean afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition,
long timeTaken)
DebuggerExchange has been processed which allows implementators
to notify breakpoints.
afterProcess in interface Debuggerexchange - 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 time
public boolean onEvent(Exchange exchange,
EventObject event)
DebuggerExchange is being processed which allows implementators
to notify breakpoints.
onEvent in interface Debuggerexchange - the exchangeevent - the event (instance of AbstractExchangeEvent
protected void onBeforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition,
Breakpoint breakpoint)
protected void onAfterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition,
long timeTaken,
Breakpoint breakpoint)
protected void onEvent(Exchange exchange,
EventObject event,
Breakpoint breakpoint)
public void start()
throws Exception
Service
start in interface ServiceException - is thrown if starting failed
public void stop()
throws Exception
Service
stop in interface ServiceException - is thrown if stopping failedpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||