Class 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:
    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 Detail

      • DefaultStartupStepRecorder

        public DefaultStartupStepRecorder()
    • Method Detail

      • 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)