jdk.jfr.events.FileForceEvent where the event annotations are
provided. Some of the methods are replaced by generated
methods when jfr is enabled. Note that the order of the arguments of the
commit(long, long, String, boolean) method
must be the same as the order of the fields.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static boolean | Returns: true if this type of event is enabled, false otherwiseDetermine if this kind of event is enabled. |
| public static void | |
| public static boolean | Returns: true if the event should be commitedtime in nanoseconds to complete the operation duration)Determine if an event should be emitted. |
| public static long |
| FileForceEvent | back to summary |
|---|---|
| public FileForceEvent() | |
| commit | back to summary |
|---|---|
| public static void commit(long start, long duration, String path, boolean metaData) Actually commit an event. The implementation is generated automatically. The order of the fields must be the same as the parameters in this method.
| |
| enabled | back to summary |
|---|---|
| public static boolean enabled() Determine if this kind of event is enabled. The implementation of this method is generated automatically if jfr is enabled.
| |
| offer | back to summary |
|---|---|
| public static void offer(long start, String path, boolean metaData) Helper method to offer the data needed to potentially commit an event.
The duration of the operation is computed using the current
timestamp and the given start time. If the duration is meets
or exceeds the configured value (determined by calling the generated method
| |
| shouldCommit | back to summary |
|---|---|
| public static boolean shouldCommit(long duration) Determine if an event should be emitted. The duration of the operation must exceed some threshold in order to commit the event. The implementation of this method is generated automatically if jfr is enabled.
| |
| timestamp | back to summary |
|---|---|
| public static long timestamp() Fetch the current timestamp in nanoseconds. This method is used to determine the start and end of an operation. The implementation of this method is generated automatically if jfr is enabled.
| |