public abstract class DiagnosticsPlugin extends Object
The plugin will not be called concurrently, unless threads are introduced
outside of the
There is a happens-before relation between
run(DiagnosticsLogWriter), and therefore there is no need to make
variables volatile. The source of the happens-before relation is the
scheduler.queue inside of the
Diagnostics or the AtomicReference in
case of static plugins.
|Modifier and Type||Method and Description|
Returns the period of executing the monitor in millis.
protected final ILogger logger
public DiagnosticsPlugin(ILogger logger)
public abstract long getPeriodMillis()
If a monitor is disabled, 0 is returned.
If a monitor should run only once, a negative value is returned. This is
useful for 'static' monitors like the
that run at the beginning of a log file but their contents will not
public abstract void onStart()
public abstract void run(DiagnosticsLogWriter writer)
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.