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 TypeMethodDescriptionvoidCalled when cluster state changes.static HealthInfoCachecreate(ClusterService clusterService) This returns all the health info stored in this cachevoidupdateNodeHealth(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:ClusterStateListenerCalled 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:
clusterChangedin interfaceClusterStateListener
-
getHealthInfo
This returns all the health info stored in this cache- Returns:
- A HealthInfo object wrapping all health data in the cache
-