public class DefaultClusterNodeManagementService extends java.lang.Object implements ClusterNodeManagementService
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getClusterGroups() |
int |
getClusterID()
Returns currently configured or acquired cluster ID.
|
int |
getConfiguredClusterID() |
static ClusterNodeManagementService |
getInstance() |
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
). |
long |
getStaleNodeTimeout() |
long |
getUpdateInterval() |
boolean |
isAutoDiscoveryEnabled()
Tells whether the cluster ID has been acquired automatically or not (fixedly configured in that case).
|
protected void |
releaseAutomaticClusterID() |
public static ClusterNodeManagementService getInstance()
public int getClusterID()
ClusterNodeManagementServicegetClusterID in interface ClusterNodeManagementServicepublic java.util.Collection<java.lang.String> getClusterGroups()
getClusterGroups in interface ClusterNodeManagementServicepublic ClusterNodeAcquisition.NodeState getNodeStartupState()
ClusterNodeManagementServiceClusterNodeAcquisition.NodeState.RESTART_AFTER_SHUTDOWN ) or whether it's been allocated anew ( ClusterNodeAcquisition.NodeState.NEW
).getNodeStartupState in interface ClusterNodeManagementServicepublic boolean isAutoDiscoveryEnabled()
ClusterNodeManagementServiceisAutoDiscoveryEnabled in interface ClusterNodeManagementServicepublic int getConfiguredClusterID()
getConfiguredClusterID in interface ClusterNodeManagementServicepublic long getStaleNodeTimeout()
getStaleNodeTimeout in interface ClusterNodeManagementServicepublic long getUpdateInterval()
getUpdateInterval in interface ClusterNodeManagementServiceprotected void releaseAutomaticClusterID()
Copyright © 2018 SAP SE. All Rights Reserved.