public interface StartupStepRecorder extends StaticService
StartupStep
during startup to allow to capture diagnostic information to help troubleshoot Camel
applications via various tooling such as Java Flight Recorder.Modifier and Type | Field and Description |
---|---|
static String |
FACTORY
Service factory key.
|
Modifier and Type | Method and Description |
---|---|
StartupStep |
beginStep(Class<?> type,
String name,
String description)
Beings a new step.
|
void |
endStep(StartupStep step)
Ends the step
|
int |
getMaxDepth()
To filter our sub steps at a maximum depth
|
String |
getRecordingDir() |
String |
getRecordingProfile() |
long |
getStartupRecorderDuration()
How long time to run the startup recorder.
|
boolean |
isEnabled()
Whether recording is enabled
|
boolean |
isRecording()
Whether to start flight recorder recording.
|
void |
setEnabled(boolean enabled)
Whether recording is enabled
|
void |
setMaxDepth(int level)
To filter our sub steps at a maximum depth
|
void |
setRecording(boolean recording)
Whether to start flight recorder recording.
|
void |
setRecordingDir(String recordingDir)
Directory to store the recording.
|
void |
setRecordingProfile(String profile)
To use a specific Java Flight Recorder profile configuration, such as default or profile.
|
void |
setStartupRecorderDuration(long startupRecorderDuration)
How long time to run the startup recorder.
|
static final String FACTORY
boolean isEnabled()
void setEnabled(boolean enabled)
long getStartupRecorderDuration()
void setStartupRecorderDuration(long startupRecorderDuration)
String getRecordingDir()
void setRecordingDir(String recordingDir)
String getRecordingProfile()
void setRecordingProfile(String profile)
void setMaxDepth(int level)
int getMaxDepth()
void setRecording(boolean recording)
boolean isRecording()
StartupStep beginStep(Class<?> type, String name, String description)
Important must call endStep(StartupStep)
to end the step.
type
- the sourcename
- name of the stepdescription
- description of the stepvoid endStep(StartupStep step)
Apache Camel