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