Interface ClusterInfoManager

All Known Implementing Classes:
FileBackedClusterInfoManager

@Internal public interface ClusterInfoManager
Manages the cluster info data.
Since:
9.5
  • Method Details

    • 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 the NodeLifecycleState 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