Class DefaultStartupStepRecorder

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.startup.DefaultStartupStepRecorder
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.StartupStepRecorder, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService
Direct Known Subclasses:
BacklogStartupStepRecorder, LoggingStartupStepRecorder

public class DefaultStartupStepRecorder extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.StartupStepRecorder
Default StartupStepRecorder that is always disabled.
  • 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.StartupStepRecorder

    FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.StartupStep
    beginStep(Class<?> type, String name, String description)
     
    org.apache.camel.StartupStep
    createStartupStep(String type, String name, String description, int id, int parentId, int level)
     
    protected void
     
    void
     
    void
    endStep(org.apache.camel.StartupStep step)
     
    int
     
     
     
    long
     
    boolean
     
    boolean
     
    protected void
    onBeginStep(org.apache.camel.StartupStep step)
     
    protected void
    onEndStep(org.apache.camel.StartupStep step)
     
    void
    setEnabled(boolean enabled)
     
    void
    setMaxDepth(int maxDepth)
     
    void
    setRecording(boolean recording)
     
    void
    setRecordingDir(String recordingDir)
     
    void
    setRecordingProfile(String recordingProfile)
     
    void
    setStartupRecorderDuration(long startupRecorderDuration)
     

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, 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, toString, 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.spi.StartupStepRecorder

    steps

    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

    • DefaultStartupStepRecorder

      public DefaultStartupStepRecorder()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.apache.camel.spi.StartupStepRecorder
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface org.apache.camel.spi.StartupStepRecorder
    • getStartupRecorderDuration

      public long getStartupRecorderDuration()
      Specified by:
      getStartupRecorderDuration in interface org.apache.camel.spi.StartupStepRecorder
    • setStartupRecorderDuration

      public void setStartupRecorderDuration(long startupRecorderDuration)
      Specified by:
      setStartupRecorderDuration in interface org.apache.camel.spi.StartupStepRecorder
    • getMaxDepth

      public int getMaxDepth()
      Specified by:
      getMaxDepth in interface org.apache.camel.spi.StartupStepRecorder
    • setMaxDepth

      public void setMaxDepth(int maxDepth)
      Specified by:
      setMaxDepth in interface org.apache.camel.spi.StartupStepRecorder
    • isRecording

      public boolean isRecording()
      Specified by:
      isRecording in interface org.apache.camel.spi.StartupStepRecorder
    • setRecording

      public void setRecording(boolean recording)
      Specified by:
      setRecording in interface org.apache.camel.spi.StartupStepRecorder
    • getRecordingDir

      public String getRecordingDir()
      Specified by:
      getRecordingDir in interface org.apache.camel.spi.StartupStepRecorder
    • setRecordingDir

      public void setRecordingDir(String recordingDir)
      Specified by:
      setRecordingDir in interface org.apache.camel.spi.StartupStepRecorder
    • getRecordingProfile

      public String getRecordingProfile()
      Specified by:
      getRecordingProfile in interface org.apache.camel.spi.StartupStepRecorder
    • setRecordingProfile

      public void setRecordingProfile(String recordingProfile)
      Specified by:
      setRecordingProfile in interface org.apache.camel.spi.StartupStepRecorder
    • doStart

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

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

      public org.apache.camel.StartupStep beginStep(Class<?> type, String name, String description)
      Specified by:
      beginStep in interface org.apache.camel.spi.StartupStepRecorder
    • endStep

      public void endStep(org.apache.camel.StartupStep step)
      Specified by:
      endStep in interface org.apache.camel.spi.StartupStepRecorder
    • createStartupStep

      public org.apache.camel.StartupStep createStartupStep(String type, String name, String description, int id, int parentId, int level)
    • onBeginStep

      protected void onBeginStep(org.apache.camel.StartupStep step)
    • onEndStep

      protected void onEndStep(org.apache.camel.StartupStep step)