public class EventQueuePlugin extends DiagnosticsPlugin
This is very useful to figure out why the event queue is running full.
Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
PERIOD_SECONDS
The period in seconds this plugin runs.
|
static HazelcastProperty |
SAMPLES
The number of samples to take from the event queue.
|
static HazelcastProperty |
THRESHOLD
The minimum number of events in the queue before it is being sampled.
|
logger
Constructor and Description |
---|
EventQueuePlugin(ILogger logger,
StripedExecutor eventExecutor,
HazelcastProperties props) |
EventQueuePlugin(NodeEngineImpl nodeEngine,
StripedExecutor eventExecutor) |
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
With the EventQueuePlugin one can see what is going on inside the event queue. It makes use of sampling to give some impression of the content.
If set to 0, the plugin is disabled.
public static final HazelcastProperty THRESHOLD
public static final HazelcastProperty SAMPLES
public EventQueuePlugin(NodeEngineImpl nodeEngine, StripedExecutor eventExecutor)
public EventQueuePlugin(ILogger logger, StripedExecutor eventExecutor, HazelcastProperties props)
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.