public class OperationThreadSamplerPlugin extends DiagnosticsPlugin
DiagnosticsPlugin
that samples the
operations threads and checks with operations/tasks are running. We have
the slow operation detector; which is very useful for very slow operations.
But it isn't useful for high volumes of not too slow operations.
With the operation sampler we have a lot better understanding which operations
are actually running.Modifier and Type | Field and Description |
---|---|
static float |
HUNDRED |
static HazelcastProperty |
INCLUDE_NAME
If the name the data-structure the operation operates on should be included.
|
static HazelcastProperty |
PERIOD_SECONDS
The sample period in seconds.
|
static HazelcastProperty |
SAMPLER_PERIOD_MILLIS
The period in milliseconds between taking samples.
|
logger
Constructor and Description |
---|
OperationThreadSamplerPlugin(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
If set to 0, the plugin is disabled.
public static final HazelcastProperty SAMPLER_PERIOD_MILLIS
public static final HazelcastProperty INCLUDE_NAME
public static final float HUNDRED
public OperationThreadSamplerPlugin(NodeEngineImpl nodeEngine)
public long getPeriodMillis()
DiagnosticsPlugin
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 SystemPropertiesPlugin
that run at the beginning of a log file but their contents will not
change.
getPeriodMillis
in class DiagnosticsPlugin
public void onStart()
onStart
in class DiagnosticsPlugin
public void run(DiagnosticsLogWriter writer)
run
in class DiagnosticsPlugin
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.