Package org.apache.camel.support.startup
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:
LoggingStartupStepRecorder
public class DefaultStartupStepRecorder extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.StartupStepRecorderDefaultStartupStepRecorderthat is always disabled.
-
-
Constructor Summary
Constructors Constructor Description DefaultStartupStepRecorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.StartupStepbeginStep(Class<?> type, String name, String description)org.apache.camel.StartupStepcreateStartupStep(String type, String name, String description, int id, int parentId, int level)protected voiddoStart()voiddoStop()voidendStep(org.apache.camel.StartupStep step)intgetMaxDepth()StringgetRecordingDir()StringgetRecordingProfile()longgetStartupRecorderDuration()booleanisEnabled()booleanisRecording()protected voidonBeginStep(org.apache.camel.StartupStep step)protected voidonEndStep(org.apache.camel.StartupStep step)voidsetEnabled(boolean enabled)voidsetMaxDepth(int maxDepth)voidsetRecording(boolean recording)voidsetRecordingDir(String recordingDir)voidsetRecordingProfile(String recordingProfile)voidsetStartupRecorderDuration(long startupRecorderDuration)-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, 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, toString, wait, wait, wait
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceorg.apache.camel.spi.StartupStepRecorder
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceorg.apache.camel.spi.StartupStepRecorder
-
getStartupRecorderDuration
public long getStartupRecorderDuration()
- Specified by:
getStartupRecorderDurationin interfaceorg.apache.camel.spi.StartupStepRecorder
-
setStartupRecorderDuration
public void setStartupRecorderDuration(long startupRecorderDuration)
- Specified by:
setStartupRecorderDurationin interfaceorg.apache.camel.spi.StartupStepRecorder
-
getMaxDepth
public int getMaxDepth()
- Specified by:
getMaxDepthin interfaceorg.apache.camel.spi.StartupStepRecorder
-
setMaxDepth
public void setMaxDepth(int maxDepth)
- Specified by:
setMaxDepthin interfaceorg.apache.camel.spi.StartupStepRecorder
-
isRecording
public boolean isRecording()
- Specified by:
isRecordingin interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecording
public void setRecording(boolean recording)
- Specified by:
setRecordingin interfaceorg.apache.camel.spi.StartupStepRecorder
-
getRecordingDir
public String getRecordingDir()
- Specified by:
getRecordingDirin interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecordingDir
public void setRecordingDir(String recordingDir)
- Specified by:
setRecordingDirin interfaceorg.apache.camel.spi.StartupStepRecorder
-
getRecordingProfile
public String getRecordingProfile()
- Specified by:
getRecordingProfilein interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecordingProfile
public void setRecordingProfile(String recordingProfile)
- Specified by:
setRecordingProfilein interfaceorg.apache.camel.spi.StartupStepRecorder
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
public void doStop() throws Exception- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
beginStep
public org.apache.camel.StartupStep beginStep(Class<?> type, String name, String description)
- Specified by:
beginStepin interfaceorg.apache.camel.spi.StartupStepRecorder
-
endStep
public void endStep(org.apache.camel.StartupStep step)
- Specified by:
endStepin interfaceorg.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)
-
-