public class MetricsPlugin extends DiagnosticsPlugin
DiagnosticsPlugin
that displays the content of the MetricsRegistry
.Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
PERIOD_SECONDS
The period in seconds the
MetricsPlugin runs. |
logger
Constructor and Description |
---|
MetricsPlugin(ILogger logger,
MetricsRegistry metricsRegistry,
HazelcastProperties properties) |
MetricsPlugin(NodeEngineImpl nodeEngine) |
Modifier and Type | Method and Description |
---|---|
long |
getPeriodMillis()
Returns the period of executing the monitor in millis.
|
void |
onStart() |
void |
run(DiagnosticsLogWriter writer) |
public static final HazelcastProperty PERIOD_SECONDS
MetricsPlugin
runs.
The MetricsPlugin periodically writing the content of the MetricsRegistry to the logfile. For debugging purposes
make sure the Diagnostics.METRICS_LEVEL
is set to debug.
This plugin is very cheap to use.
If set to 0, the plugin is disabled.public MetricsPlugin(NodeEngineImpl nodeEngine)
public MetricsPlugin(ILogger logger, MetricsRegistry metricsRegistry, HazelcastProperties properties)
public void onStart()
onStart
in class DiagnosticsPlugin
public long getPeriodMillis()
DiagnosticsPlugin
SystemPropertiesPlugin
that run at the beginning of a log file but their contents will not change.getPeriodMillis
in class DiagnosticsPlugin
public void run(DiagnosticsLogWriter writer)
run
in class DiagnosticsPlugin
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.