Package de.hybris.platform.cluster
Interface ClusterNodeManagementService
-
- All Known Implementing Classes:
DefaultClusterNodeManagementService
public interface ClusterNodeManagementServiceManages automatic or configured assignment of cluster node IDs. This is a global singleton.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Collection<ClusterNodeInfo>findAllNodes()java.util.Collection<java.lang.String>getClusterGroups()intgetClusterID()Returns currently configured or acquired cluster ID.intgetConfiguredClusterID()ClusterNodeAcquisition.NodeStategetNodeStartupState()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).longgetStaleNodeTimeout()longgetUpdateInterval()booleanisAutoDiscoveryEnabled()Tells whether the cluster ID has been acquired automatically or not (fixedly configured in that case).
-
-
-
Method Detail
-
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
java.util.Collection<java.lang.String> getClusterGroups()
-
getUpdateInterval
long getUpdateInterval()
-
getStaleNodeTimeout
long getStaleNodeTimeout()
-
getConfiguredClusterID
int getConfiguredClusterID()
-
findAllNodes
default java.util.Collection<ClusterNodeInfo> findAllNodes()
-
-