Interface ClusterInfoManager
- All Known Implementing Classes:
FileBackedClusterInfoManager
@Internal
public interface ClusterInfoManager
Manages the cluster info data.
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates initial state of cluster info if one missing.@NotNull Optional<ClusterInfoData>
@NotNull Optional<ClusterInfoData>
void
Refreshes the cluster info caches.boolean
setLifecycle
(@NotNull NodeLifecycleState lifecycle) Sets theNodeLifecycleState
coming from the current node.
-
Method Details
-
createInitialStateIfMissing
void createInitialStateIfMissing()Creates initial state of cluster info if one missing. -
getClusterInfoData
- Returns:
- gets the current
ClusterInfoData
if present, empty otherwise
-
getBufferedClusterInfoData
- Returns:
- gets the eventually consistent
ClusterInfoData
if present, empty otherwise
-
refreshBufferedClusterInfoData
void refreshBufferedClusterInfoData()Refreshes the cluster info caches. -
setLifecycle
Sets theNodeLifecycleState
coming 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
-