StartupStep implementation for the Java Flight Recorder.
This variant delegates to a JFR event extension
to collect and record data in Java Flight Recorder.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final FlightRecorderStartupEvent | |
| private final Consumer | |
| private final FlightRecorderStartupStep. |
| Access | Constructor and Description |
|---|---|
| public | FlightRecorderStartupStep(long id, String name, long parentId, Consumer<FlightRecorderStartupStep> recordingCallback)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | end()
Implements org. Record the state of the step and possibly other metrics like execution time. |
| protected FlightRecorderStartupEvent | |
| public long | getId()
Implements org. Return the unique id for this step within the application startup. |
| public String | getName()
Implements org. Return the name of the startup step. |
| public Long | getParentId()
Implements org. Return, if available, the id of the parent step. |
| public StartupStep. | getTags()
Implements org. Return the |
| public StartupStep | tag(String
tag key key, String tag value value)Implements org. Add a |
| public StartupStep |
| event | back to summary |
|---|---|
| private final FlightRecorderStartupEvent event | |
| recordingCallback | back to summary |
|---|---|
| private final Consumer<FlightRecorderStartupStep> recordingCallback | |
| tags | back to summary |
|---|---|
| private final FlightRecorderStartupStep. | |
| FlightRecorderStartupStep | back to summary |
|---|---|
| public FlightRecorderStartupStep(long id, String name, long parentId, Consumer<FlightRecorderStartupStep> recordingCallback) | |
| end | back to summary |
|---|---|
| public void end() Implements org. Doc from org. Record the state of the step and possibly other metrics like execution time. Once ended, changes on the step state are not allowed.
| |
| getEvent | back to summary |
|---|---|
| protected FlightRecorderStartupEvent getEvent() | |
| getId | back to summary |
|---|---|
| public long getId() Implements org. Doc from org. Return the unique id for this step within the application startup.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Return the name of the startup step. A step name describes the current action or phase. This technical name should be "." namespaced and can be reused to describe other instances of similar steps during application startup.
| |
| getParentId | back to summary |
|---|---|
| public Long getParentId() Implements org. Doc from org. Return, if available, the id of the parent step. The parent step is the step that was started the most recently when the current step was created.
| |
| getTags | back to summary |
|---|---|
| public StartupStep. Implements org. Doc from org. Return the
| |
| tag | back to summary |
|---|---|
| public StartupStep tag(String key, String value) Implements org. Doc from org. Add a | |
| tag | back to summary |
|---|---|
| public StartupStep tag(String key, Supplier<String> value) Implements org. Doc from org. Add a | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getValue()
Implements org. Return the |
| key | back to summary |
|---|---|
| private final String key | |
| value | back to summary |
|---|---|
| private final String value | |
| FlightRecorderTag | back to summary |
|---|---|
| public FlightRecorderTag(String key, String value) | |
| getKey | back to summary |
|---|---|
| public String getKey() Implements org. Doc from org. Return the
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Return the
| |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private StartupStep. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Iterator |
| tags | back to summary |
|---|---|
| private StartupStep. | |
| FlightRecorderTags | back to summary |
|---|---|
| pack-priv FlightRecorderTags() | |
| add | back to summary |
|---|---|
| public void add(String key, String value) | |
| add | back to summary |
|---|---|
| public void add(String key, Supplier<String> value) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public StartupStep. | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| idx | back to summary |
|---|---|
| private int idx | |
| TagsIterator | back to summary |
|---|---|
| private TagsIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public StartupStep. Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |