public class InvocationPlugin extends DiagnosticsPlugin
DiagnosticsPlugin
that displays all invocations that have been executing for some time.
It will display the current invocations.
But it will also display the history. E.g. if a entry processor has been running for 5 minutes and
the {@link #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
public static final HazelcastProperty SLOW_THRESHOLD_SECONDS
public static final HazelcastProperty SLOW_MAX_COUNT
public InvocationPlugin(NodeEngineImpl nodeEngine)
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 onStart()
onStart
in class DiagnosticsPlugin
public void run(DiagnosticsLogWriter writer)
run
in class DiagnosticsPlugin
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.