public class InvocationPlugin extends DiagnosticsPlugin
DiagnosticsPlugin
that displays all invocations that have been
executing for some time.
It will display the current invocations and the invocation history. For
example, if an entry processor has been running for 5 minutes and the
SAMPLE_PERIOD_SECONDS
is set to 1 minute, then there will be
5 samples for that given invocation. This is useful to track which
operations have been slow over a longer period of time.
Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
SAMPLE_PERIOD_SECONDS
The sample period in seconds.
|
static HazelcastProperty |
SLOW_MAX_COUNT
The maximum number of slow invocations to print.
|
static HazelcastProperty |
SLOW_THRESHOLD_SECONDS
The threshold in seconds to consider an invocation to be slow.
|
logger
Constructor and Description |
---|
InvocationPlugin(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 SAMPLE_PERIOD_SECONDS
If set to 0, the plugin is disabled.
public static final HazelcastProperty SLOW_THRESHOLD_SECONDS
public static final HazelcastProperty SLOW_MAX_COUNT
public InvocationPlugin(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 © 2020 Hazelcast, Inc.. All Rights Reserved.