public abstract class PerformanceMonitorPlugin extends Object
PerformanceMonitor.
The plugin will not be called concurrently, unless threads are introduced outside of the PerformanceMonitor.
There is a happens before relation between onStart() and run(PerformanceLogWriter), and therefor
there is no need to make variables volatile. The source of the happens-before relation is the scheduler.queue inside
of the PerformanceMonitor or the AtomicReference in case of static plugins.| Modifier and Type | Field and Description |
|---|---|
protected static long |
DISABLED
Indicates that the plugin is disabled.
|
protected static long |
STATIC
Indicates that a plugin should be run once per performance log file.
|
| Constructor and Description |
|---|
PerformanceMonitorPlugin() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getPeriodMillis()
Returns the period of executing the monitor in millis.
|
abstract void |
onStart() |
abstract void |
run(PerformanceLogWriter writer) |
protected static final long STATIC
protected static final long DISABLED
public abstract long getPeriodMillis()
SystemPropertiesPlugin that run at the beginning of a log file but their contents will not change.public abstract void onStart()
public abstract void run(PerformanceLogWriter writer)
Copyright © 2016. All Rights Reserved.