Class 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.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

        BUILDED, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTINGDOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activateAllBreakpoints()  
      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> getBreakpoints()  
      org.apache.camel.CamelContext getCamelContext()  
      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 suspendAllBreakpoints()  
      String 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 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 Detail

      • DefaultDebugger

        public DefaultDebugger()
      • DefaultDebugger

        public DefaultDebugger​(org.apache.camel.CamelContext camelContext)
    • Method Detail

      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • addBreakpoint

        public void addBreakpoint​(org.apache.camel.spi.Breakpoint breakpoint)
        Specified by:
        addBreakpoint in interface org.apache.camel.spi.Debugger
      • addBreakpoint

        public void addBreakpoint​(org.apache.camel.spi.Breakpoint breakpoint,
                                  org.apache.camel.spi.Condition... conditions)
        Specified by:
        addBreakpoint in interface org.apache.camel.spi.Debugger
      • addSingleStepBreakpoint

        public void addSingleStepBreakpoint​(org.apache.camel.spi.Breakpoint breakpoint)
        Specified by:
        addSingleStepBreakpoint in interface org.apache.camel.spi.Debugger
      • addSingleStepBreakpoint

        public void addSingleStepBreakpoint​(org.apache.camel.spi.Breakpoint breakpoint,
                                            org.apache.camel.spi.Condition... conditions)
        Specified by:
        addSingleStepBreakpoint in interface org.apache.camel.spi.Debugger
      • removeBreakpoint

        public void removeBreakpoint​(org.apache.camel.spi.Breakpoint breakpoint)
        Specified by:
        removeBreakpoint in interface org.apache.camel.spi.Debugger
      • suspendAllBreakpoints

        public void suspendAllBreakpoints()
        Specified by:
        suspendAllBreakpoints in interface org.apache.camel.spi.Debugger
      • activateAllBreakpoints

        public void activateAllBreakpoints()
        Specified by:
        activateAllBreakpoints in interface org.apache.camel.spi.Debugger
      • getBreakpoints

        public List<org.apache.camel.spi.Breakpoint> getBreakpoints()
        Specified by:
        getBreakpoints in interface org.apache.camel.spi.Debugger
      • startSingleStepExchange

        public boolean startSingleStepExchange​(String exchangeId,
                                               org.apache.camel.spi.Breakpoint breakpoint)
        Specified by:
        startSingleStepExchange in interface org.apache.camel.spi.Debugger
      • stopSingleStepExchange

        public void stopSingleStepExchange​(String exchangeId)
        Specified by:
        stopSingleStepExchange in interface org.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 interface org.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 interface org.apache.camel.spi.Debugger
      • onEvent

        public boolean onEvent​(org.apache.camel.Exchange exchange,
                               org.apache.camel.spi.CamelEvent.ExchangeEvent event)
        Specified by:
        onEvent in interface org.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

        protected void doInit()
                       throws Exception
        Overrides:
        doInit in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception