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:
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, SUSPENDINGFields inherited from interface org.apache.camel.spi.StartupStepRecorder
FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.StartupSteporg.apache.camel.StartupStepcreateStartupStep(String type, String name, String description, int id, int parentId, int level) protected voiddoStart()voiddoStop()voidendStep(org.apache.camel.StartupStep step) intlongbooleanbooleanprotected 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, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.spi.StartupStepRecorder
stepsMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultStartupStepRecorder
public DefaultStartupStepRecorder()
-
-
Method Details
-
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
- Specified by:
getRecordingDirin interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecordingDir
- Specified by:
setRecordingDirin interfaceorg.apache.camel.spi.StartupStepRecorder
-
getRecordingProfile
- Specified by:
getRecordingProfilein interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecordingProfile
- Specified by:
setRecordingProfilein interfaceorg.apache.camel.spi.StartupStepRecorder
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
beginStep
- 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
-
onBeginStep
protected void onBeginStep(org.apache.camel.StartupStep step) -
onEndStep
protected void onEndStep(org.apache.camel.StartupStep step)
-