public class HealthMonitor extends Object
MetricsRegistry
to provides some clues
about the internal Hazelcast state.
Health monitor can be configured with system properties.
GroupProperty.HEALTH_MONITORING_LEVEL
This property can be one of the following:
HealthMonitorLevel.NOISY
=> does not check threshold, always prints.
HealthMonitorLevel.SILENT
=> prints only if metrics are above threshold (default).
HealthMonitorLevel.OFF
=> does not print anything.
GroupProperty.HEALTH_MONITORING_DELAY_SECONDS
Time between printing two logs of health monitor. Default values is 30 seconds.Constructor and Description |
---|
HealthMonitor(Node node) |
Modifier and Type | Method and Description |
---|---|
static String |
numberToUnit(long number) |
static String |
percentageString(double p)
Given a number, returns that number as a percentage string.
|
HealthMonitor |
start() |
public HealthMonitor(Node node)
public HealthMonitor start()
public static String percentageString(double p)
p
- the given numberpublic static String numberToUnit(long number)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.