Class ClusterManagerService
java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.andes.cluster.mgt.ClusterManagerService
public class ClusterManagerService
extends org.wso2.carbon.core.AbstractAdmin
Admin service class for cluster management
-
Field Summary
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the IP addresses and ports of the nodes in a clusterget the ID assigned by zookeeper to this nodebooleanGets the message store's health statusbooleancheck if broker is in clustering modeMethods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
Constructor Details
-
ClusterManagerService
public ClusterManagerService()
-
-
Method Details
-
getAllClusterNodeAddresses
Gets the IP addresses and ports of the nodes in a cluster- Returns:
- A list of addresses of the nodes in a cluster
- Throws:
ClusterMgtAdminException
-
isClusteringEnabled
check if broker is in clustering mode- Returns:
- boolean if clustering enabled
- Throws:
ClusterMgtException
-
getMyNodeID
get the ID assigned by zookeeper to this node- Returns:
- String node ID
- Throws:
ClusterMgtException
-
getStoreHealth
Gets the message store's health status- Returns:
- true if healthy, else false.
- Throws:
ClusterMgtException
-