public class SystemLogPlugin extends DiagnosticsPlugin
SystemLogPlugin
is responsible for:
This plugin has a low overhead and is meant to run in production.
Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
ENABLED
If this plugin is enabled.
|
static HazelcastProperty |
LOG_PARTITIONS
If logging partition migration is enabled.
|
logger
Constructor and Description |
---|
SystemLogPlugin(HazelcastProperties properties,
ConnectionListenable connectionObservable,
HazelcastInstance hazelcastInstance,
ILogger logger) |
SystemLogPlugin(HazelcastProperties properties,
ConnectionListenable connectionObservable,
HazelcastInstance hazelcastInstance,
ILogger logger,
NodeExtension nodeExtension) |
SystemLogPlugin(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 ENABLED
public static final HazelcastProperty LOG_PARTITIONS
public SystemLogPlugin(NodeEngineImpl nodeEngine)
public SystemLogPlugin(HazelcastProperties properties, ConnectionListenable connectionObservable, HazelcastInstance hazelcastInstance, ILogger logger)
public SystemLogPlugin(HazelcastProperties properties, ConnectionListenable connectionObservable, HazelcastInstance hazelcastInstance, ILogger logger, NodeExtension nodeExtension)
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 © 2021 Hazelcast, Inc.. All Rights Reserved.