java.lang.Object
org.elasticsearch.health.node.LocalHealthMonitor
- All Implemented Interfaces:
ClusterStateListener
This class monitors the health of the node regarding the load on several resources.
Currently, it only checks for available disk space. Furthermore, 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, NodeService nodeService, ThreadPool threadPool, Client client)
-
Field Details
-
POLL_INTERVAL_SETTING
-
-
Method Details
-
create
public static LocalHealthMonitor create(Settings settings, ClusterService clusterService, NodeService nodeService, ThreadPool threadPool, Client client) -
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
-