Package de.hybris.platform.cluster
Class DefaultClusterNodeManagementService
java.lang.Object
de.hybris.platform.cluster.DefaultClusterNodeManagementService
- All Implemented Interfaces:
ClusterNodeManagementService
public class DefaultClusterNodeManagementService
extends Object
implements ClusterNodeManagementService
-
Method Summary
Modifier and TypeMethodDescriptionintReturns currently configured or acquired cluster ID.intstatic ClusterNodeManagementServiceIn 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).longlongbooleanTells whether the cluster ID has been acquired automatically or not (fixedly configured in that case).protected void
-
Method Details
-
getInstance
-
getClusterID
public int getClusterID()Description copied from interface:ClusterNodeManagementServiceReturns currently configured or acquired cluster ID.- Specified by:
getClusterIDin interfaceClusterNodeManagementService
-
getClusterGroups
- Specified by:
getClusterGroupsin interfaceClusterNodeManagementService
-
getNodeStartupState
Description copied from interface:ClusterNodeManagementServiceIn 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).- Specified by:
getNodeStartupStatein interfaceClusterNodeManagementService
-
isAutoDiscoveryEnabled
public boolean isAutoDiscoveryEnabled()Description copied from interface:ClusterNodeManagementServiceTells whether the cluster ID has been acquired automatically or not (fixedly configured in that case).- Specified by:
isAutoDiscoveryEnabledin interfaceClusterNodeManagementService
-
findAllNodes
- Specified by:
findAllNodesin interfaceClusterNodeManagementService
-
getConfiguredClusterID
public int getConfiguredClusterID()- Specified by:
getConfiguredClusterIDin interfaceClusterNodeManagementService
-
getStaleNodeTimeout
public long getStaleNodeTimeout()- Specified by:
getStaleNodeTimeoutin interfaceClusterNodeManagementService
-
getUpdateInterval
public long getUpdateInterval()- Specified by:
getUpdateIntervalin interfaceClusterNodeManagementService
-
releaseAutomaticClusterID
protected void releaseAutomaticClusterID()
-