public class NetworkingImbalancePlugin extends DiagnosticsPlugin
NetworkingImbalancePlugin
is an experimental plugin meant for detecting imbalance in the IO system.
This plugin will probably mostly be used for internal purposes to get a better understanding of imbalances. Normally imbalances are taken care of by the IOBalancer; but we need to make sure it makes the right choice.
This plugin can be used on server and client side.
Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
PERIOD_SECONDS
The period in seconds this plugin runs.
|
logger
Constructor and Description |
---|
NetworkingImbalancePlugin(HazelcastProperties properties,
EventLoopGroup eventLoopGroup,
ILogger logger) |
NetworkingImbalancePlugin(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 NetworkingImbalancePlugin(NodeEngineImpl nodeEngine)
public NetworkingImbalancePlugin(HazelcastProperties properties, EventLoopGroup eventLoopGroup, ILogger logger)
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.