Interface ClusterInfoManager
- All Known Implementing Classes:
FileBackedClusterInfoManager
@Internal
public interface ClusterInfoManager
Manages the cluster info data.
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreates initial state of cluster info if one missing.@NotNull Optional<ClusterInfoData>@NotNull Optional<ClusterInfoData>voidRefreshes the cluster info caches.booleansetLifecycle(@NotNull NodeLifecycleState lifecycle) Sets theNodeLifecycleStatecoming from the current node.
-
Method Details
-
createInitialStateIfMissing
void createInitialStateIfMissing()Creates initial state of cluster info if one missing. -
getClusterInfoData
- Returns:
- gets the current
ClusterInfoDataif present, empty otherwise
-
getBufferedClusterInfoData
- Returns:
- gets the eventually consistent
ClusterInfoDataif present, empty otherwise
-
refreshBufferedClusterInfoData
void refreshBufferedClusterInfoData()Refreshes the cluster info caches. -
setLifecycle
Sets theNodeLifecycleStatecoming from the current node. Based on implementation, the node lifecycle states might be internally mapped to different cluster states or not affect the cluster state at all.- Parameters:
lifecycle- new lifecycle state originating from node- Returns:
- true if the state was changed, false otherwise
-