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 Type
    Method
    Description
    void
    Ends the step.
    long
    Gets the begin time (optional).
    Description of the step
    long
    Gets the duration the step took (optional)
    int
    The id of the step
    int
    The step level (sub step of previous steps)
    Name of the step
    int
    The id of the parent step
    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)