java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.impl.debugger.DefaultDebugger
org.qubership.integration.platform.engine.service.debugger.CamelDebugger
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

@Component @Scope("prototype") public class CamelDebugger extends org.apache.camel.impl.debugger.DefaultDebugger
  • 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
    Constructor
    Description
    CamelDebugger(ServerConfiguration serverConfiguration, TracingService tracingService, CheckpointSessionService checkpointSessionService, MetricsService metricsService, ChainLogger chainLogger, Optional<SessionsKafkaReportingService> sessionsKafkaReportingService, SessionsService sessionsService, PayloadExtractor payloadExtractor, VariablesService variablesService, CamelDebuggerPropertiesService propertiesService, Optional<CamelExchangeContextPropagation> exchangeContextPropagation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    void
    finishCheckpointSession(org.apache.camel.Exchange exchange, CamelDebuggerProperties dbgProperties, String sessionId, ExecutionStatus executionStatus, long duration)
     
     
    getRelatedProperties(org.apache.camel.Exchange exchange)
     
    void
    logAfterStepFinished(org.apache.camel.Exchange exchange, CamelDebuggerProperties dbgProperties, String stepName, String elementId, ChainElementType elementType)
     
    boolean
    onEvent(org.apache.camel.Exchange exchange, org.apache.camel.spi.CamelEvent.ExchangeEvent event)
     

    Methods inherited from class org.apache.camel.impl.debugger.DefaultDebugger

    activateAllBreakpoints, addBreakpoint, addBreakpoint, addSingleStepBreakpoint, addSingleStepBreakpoint, doInit, doStart, doStop, getBreakpoints, getCamelContext, onAfterProcess, onBeforeProcess, onEvent, removeBreakpoint, setCamelContext, startSingleStepExchange, stopSingleStepExchange, suspendAllBreakpoints, 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

  • Method Details

    • 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
      Overrides:
      onEvent in class org.apache.camel.impl.debugger.DefaultDebugger
    • 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
      Overrides:
      beforeProcess in class org.apache.camel.impl.debugger.DefaultDebugger
    • 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
      Overrides:
      afterProcess in class org.apache.camel.impl.debugger.DefaultDebugger
    • logAfterStepFinished

      public void logAfterStepFinished(org.apache.camel.Exchange exchange, CamelDebuggerProperties dbgProperties, String stepName, String elementId, ChainElementType elementType)
    • finishCheckpointSession

      public void finishCheckpointSession(org.apache.camel.Exchange exchange, CamelDebuggerProperties dbgProperties, String sessionId, ExecutionStatus executionStatus, long duration)
    • getRelatedProperties

      public CamelDebuggerProperties getRelatedProperties(org.apache.camel.Exchange exchange)
    • getRelatedProperties

      public CamelDebuggerProperties getRelatedProperties()