Interface StartupStep
public interface StartupStep
Represents a single timed step in the
CamelContext startup sequence, used for diagnostics and performance
profiling.
Steps are hierarchically nested (each step has a parent id) and are recorded by the
StartupStepRecorder. When Java Flight Recorder is on the classpath the recorder emits
each step as a JFR event, making startup timings visible in tools such as JDK Mission Control. Steps are opened at
the start of a discrete initialization phase and closed with endStep() when the phase completes.- Since:
- 3.8
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidendStep()Ends the step.longGets the begin time (optional).Description of the steplongGets the duration the step took (optional)intgetId()The id of the stepintgetLevel()The step level (sub step of previous steps)getName()Name of the stepintThe id of the parent stepgetType()The source class type of the step
-
Method Details
-
getType
String getType()The source class type of the step -
getName
String getName()Name of the step -
getDescription
String getDescription()Description of the step -
getId
int getId()The id of the step -
getParentId
int getParentId()The id of the parent step -
getLevel
int getLevel()The step level (sub step of previous steps) -
endStep
void endStep()Ends the step. -
getBeginTime
long getBeginTime()Gets the begin time (optional). -
getDuration
long getDuration()Gets the duration the step took (optional)
-