java.lang.Object
org.elasticsearch.health.node.LocalHealthMonitor
- All Implemented Interfaces:
ClusterStateListener
This class monitors the local health of the node, such as the load and any errors that can be specific to a node
(as opposed to errors that are cluster-wide). It informs the health node about the local health upon change, or
when a new node is detected, or when the master node changed.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when cluster state changes.static LocalHealthMonitor
create
(Settings settings, ClusterService clusterService, ThreadPool threadPool, Client client, FeatureService featureService, List<HealthTracker<?>> healthTrackers)
-
Field Details
-
POLL_INTERVAL_SETTING
-
-
Method Details
-
create
public static LocalHealthMonitor create(Settings settings, ClusterService clusterService, ThreadPool threadPool, Client client, FeatureService featureService, List<HealthTracker<?>> healthTrackers) -
clusterChanged
Description copied from interface:ClusterStateListener
Called when cluster state changes.Cluster states are applied one-by-one which means they can be a performance bottleneck. Implementations of this method should therefore be fast, so please consider forking work into the background rather than doing everything inline.
- Specified by:
clusterChanged
in interfaceClusterStateListener
-