Interface ClusterNodeManagementService

All Known Implementing Classes:
DefaultClusterNodeManagementService

public interface ClusterNodeManagementService
Manages automatic or configured assignment of cluster node IDs. This is a global singleton.
  • Method Details

    • getClusterID

      int getClusterID()
      Returns currently configured or acquired cluster ID.
    • isAutoDiscoveryEnabled

      boolean isAutoDiscoveryEnabled()
      Tells whether the cluster ID has been acquired automatically or not (fixedly configured in that case).
    • getNodeStartupState

      ClusterNodeAcquisition.NodeState getNodeStartupState()
      In case of automatic cluster id acquisition this tells whether a previous instance with that ID has potentially crashed ( ClusterNodeAcquisition.NodeState.RESTART_AFTER_SHUTDOWN ) or whether it's been allocated anew ( ClusterNodeAcquisition.NodeState.NEW ).
    • getClusterGroups

      Collection<String> getClusterGroups()
    • getUpdateInterval

      long getUpdateInterval()
    • getStaleNodeTimeout

      long getStaleNodeTimeout()
    • getConfiguredClusterID

      int getConfiguredClusterID()
    • findAllNodes

      default Collection<ClusterNodeInfo> findAllNodes()