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.StartupStepRecorder
DefaultStartupStepRecorder
that 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.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
doStart()
void
doStop()
void
endStep(org.apache.camel.StartupStep step)
int
getMaxDepth()
String
getRecordingDir()
String
getRecordingProfile()
long
getStartupRecorderDuration()
boolean
isEnabled()
boolean
isRecording()
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, 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:
isEnabled
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
getStartupRecorderDuration
public long getStartupRecorderDuration()
- Specified by:
getStartupRecorderDuration
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
setStartupRecorderDuration
public void setStartupRecorderDuration(long startupRecorderDuration)
- Specified by:
setStartupRecorderDuration
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
getMaxDepth
public int getMaxDepth()
- Specified by:
getMaxDepth
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
setMaxDepth
public void setMaxDepth(int maxDepth)
- Specified by:
setMaxDepth
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
isRecording
public boolean isRecording()
- Specified by:
isRecording
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecording
public void setRecording(boolean recording)
- Specified by:
setRecording
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
getRecordingDir
public String getRecordingDir()
- Specified by:
getRecordingDir
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecordingDir
public void setRecordingDir(String recordingDir)
- Specified by:
setRecordingDir
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
getRecordingProfile
public String getRecordingProfile()
- Specified by:
getRecordingProfile
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
setRecordingProfile
public void setRecordingProfile(String recordingProfile)
- Specified by:
setRecordingProfile
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
public void doStop() throws Exception
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
beginStep
public org.apache.camel.StartupStep beginStep(Class<?> type, String name, String description)
- Specified by:
beginStep
in interfaceorg.apache.camel.spi.StartupStepRecorder
-
endStep
public void endStep(org.apache.camel.StartupStep step)
- Specified by:
endStep
in 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)
-
-