Package org.apache.camel.impl.debugger
Class DefaultDebugger
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.impl.debugger.DefaultDebugger
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.Debugger
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class DefaultDebugger
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.Debugger, org.apache.camel.CamelContextAware
The default implementation of the
Debugger
.-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
Fields inherited from interface org.apache.camel.spi.Debugger
FACTORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addBreakpoint
(org.apache.camel.spi.Breakpoint breakpoint) void
addBreakpoint
(org.apache.camel.spi.Breakpoint breakpoint, org.apache.camel.spi.Condition... conditions) void
addSingleStepBreakpoint
(org.apache.camel.spi.Breakpoint breakpoint) void
addSingleStepBreakpoint
(org.apache.camel.spi.Breakpoint breakpoint, org.apache.camel.spi.Condition... conditions) boolean
afterProcess
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken) boolean
beforeProcess
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition) protected void
doInit()
protected void
doStart()
protected void
doStop()
List
<org.apache.camel.spi.Breakpoint> org.apache.camel.CamelContext
protected void
onAfterProcess
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken, org.apache.camel.spi.Breakpoint breakpoint) protected void
onBeforeProcess
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, org.apache.camel.spi.Breakpoint breakpoint) boolean
onEvent
(org.apache.camel.Exchange exchange, org.apache.camel.spi.CamelEvent.ExchangeEvent event) protected void
onEvent
(org.apache.camel.Exchange exchange, org.apache.camel.spi.CamelEvent.ExchangeEvent event, org.apache.camel.spi.Breakpoint breakpoint) void
removeBreakpoint
(org.apache.camel.spi.Breakpoint breakpoint) void
setCamelContext
(org.apache.camel.CamelContext camelContext) boolean
startSingleStepExchange
(String exchangeId, org.apache.camel.spi.Breakpoint breakpoint) void
stopSingleStepExchange
(String exchangeId) void
toString()
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultDebugger
public DefaultDebugger() -
DefaultDebugger
public DefaultDebugger(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
addBreakpoint
public void addBreakpoint(org.apache.camel.spi.Breakpoint breakpoint) - Specified by:
addBreakpoint
in interfaceorg.apache.camel.spi.Debugger
-
addBreakpoint
public void addBreakpoint(org.apache.camel.spi.Breakpoint breakpoint, org.apache.camel.spi.Condition... conditions) - Specified by:
addBreakpoint
in interfaceorg.apache.camel.spi.Debugger
-
addSingleStepBreakpoint
public void addSingleStepBreakpoint(org.apache.camel.spi.Breakpoint breakpoint) - Specified by:
addSingleStepBreakpoint
in interfaceorg.apache.camel.spi.Debugger
-
addSingleStepBreakpoint
public void addSingleStepBreakpoint(org.apache.camel.spi.Breakpoint breakpoint, org.apache.camel.spi.Condition... conditions) - Specified by:
addSingleStepBreakpoint
in interfaceorg.apache.camel.spi.Debugger
-
removeBreakpoint
public void removeBreakpoint(org.apache.camel.spi.Breakpoint breakpoint) - Specified by:
removeBreakpoint
in interfaceorg.apache.camel.spi.Debugger
-
suspendAllBreakpoints
public void suspendAllBreakpoints()- Specified by:
suspendAllBreakpoints
in interfaceorg.apache.camel.spi.Debugger
-
activateAllBreakpoints
public void activateAllBreakpoints()- Specified by:
activateAllBreakpoints
in interfaceorg.apache.camel.spi.Debugger
-
getBreakpoints
- Specified by:
getBreakpoints
in interfaceorg.apache.camel.spi.Debugger
-
startSingleStepExchange
public boolean startSingleStepExchange(String exchangeId, org.apache.camel.spi.Breakpoint breakpoint) - Specified by:
startSingleStepExchange
in interfaceorg.apache.camel.spi.Debugger
-
stopSingleStepExchange
- Specified by:
stopSingleStepExchange
in interfaceorg.apache.camel.spi.Debugger
-
beforeProcess
public boolean beforeProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition) - Specified by:
beforeProcess
in interfaceorg.apache.camel.spi.Debugger
-
afterProcess
public boolean afterProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken) - Specified by:
afterProcess
in interfaceorg.apache.camel.spi.Debugger
-
onEvent
public boolean onEvent(org.apache.camel.Exchange exchange, org.apache.camel.spi.CamelEvent.ExchangeEvent event) - Specified by:
onEvent
in interfaceorg.apache.camel.spi.Debugger
-
onBeforeProcess
protected void onBeforeProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, org.apache.camel.spi.Breakpoint breakpoint) -
onAfterProcess
protected void onAfterProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken, org.apache.camel.spi.Breakpoint breakpoint) -
onEvent
protected void onEvent(org.apache.camel.Exchange exchange, org.apache.camel.spi.CamelEvent.ExchangeEvent event, org.apache.camel.spi.Breakpoint breakpoint) -
doInit
- Overrides:
doInit
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStart
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
toString
-