Top Description Fields Constructors Methods
org.springframework.core.metrics.jfr

public Class FlightRecorderApplicationStartup

extends Object
implements ApplicationStartup
Class Inheritance
All Implemented Interfaces
org.springframework.core.metrics.ApplicationStartup
Imports
java.util.Deque, java.util.concurrent.ConcurrentLinkedDeque, java.util.concurrent.atomic.AtomicLong, org.springframework.core.metrics.ApplicationStartup, .StartupStep

ApplicationStartup implementation for the Java Flight Recorder.

This variant records StartupStep as Flight Recorder events. Because such events only support base types, the org.springframework.core.metrics.StartupStep.Tags are serialized as a single String attribute.

Once this is configured on the application context, you can record data by launching the application with recording enabled: java -XX:StartFlightRecording:filename=recording.jfr,duration=10s -jar app.jar.

Author
Brian Clozel
Since
5.3

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final Deque<Long>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public StartupStep
start(String
the step name
name
)

Implements org.springframework.core.metrics.ApplicationStartup.start.

Create a new step and marks its beginning.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentSequenceIdback to summary
private final AtomicLong currentSequenceId
currentStepsback to summary
private final Deque<Long> currentSteps

Constructor Detail

FlightRecorderApplicationStartupback to summary
public FlightRecorderApplicationStartup()

Method Detail

startback to summary
public StartupStep start(String name)

Implements org.springframework.core.metrics.ApplicationStartup.start.

Doc from org.springframework.core.metrics.ApplicationStartup.start.

Create a new step and marks its beginning.

A step name describes the current action or phase. This technical name should be "." namespaced and can be reused to describe other instances of the same step during application startup.

Parameters
name:String

the step name

Annotations
@Override