java.lang.Object
org.elasticsearch.health.node.HealthInfoCache
- All Implemented Interfaces:
ClusterStateListener
Keeps track of several health statuses per node that can be used in health.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when cluster state changes.static HealthInfoCache
create
(ClusterService clusterService) This returns all the health info stored in this cachevoid
updateNodeHealth
(String nodeId, DiskHealthInfo diskHealthInfo, DataStreamLifecycleHealthInfo latestDslHealthInfo, RepositoriesHealthInfo repositoriesHealthInfo)
-
Method Details
-
create
-
updateNodeHealth
public void updateNodeHealth(String nodeId, @Nullable DiskHealthInfo diskHealthInfo, @Nullable DataStreamLifecycleHealthInfo latestDslHealthInfo, @Nullable RepositoriesHealthInfo repositoriesHealthInfo) -
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
-
getHealthInfo
This returns all the health info stored in this cache- Returns:
- A HealthInfo object wrapping all health data in the cache
-