- com
- pcbsys
- nirvana
- nAdminAPI
- nClusterStatus
This class contains the status of the of a realm within the cluster, What state it has, which node is the elected master etc. More...
Inherits Observable.
Public Member Functions | |
boolean | canBeMaster () |
Indicates whether the cluster member can be selected as master within the cluster. More... | |
String | getElectedMaster () |
The name of the nodes elected master. More... | |
String | getName () |
The nameof the realm which these status's are related to. More... | |
nClusterSite | getSite () |
Returns the nClusterSite for the cluster. More... | |
String | getState () |
Returns the realms cluster state. More... | |
nClusterStatusEntry | getStatus (String realm) |
Returns nClusterStatusEntry for the specified realm. More... | |
nClusterStatusEntry | getStatus (int idx) |
Returns nClusterStatusEntry for the realm at the index specified. More... | |
int | getStatusCounter () |
Returns the number of times that a realm node is referenced. More... | |
boolean | hasSite () |
Returns true if the cluster has a site. More... | |
int | size () |
The number of known nodes within the cluster. More... | |
This class contains the status of the of a realm within the cluster, What state it has, which node is the elected master etc.
boolean com.pcbsys.nirvana.nAdminAPI.nClusterStatus.canBeMaster | ( | ) |
Indicates whether the cluster member can be selected as master within the cluster.
String com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getElectedMaster | ( | ) |
The name of the nodes elected master.
String com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getName | ( | ) |
The nameof the realm which these status's are related to.
nClusterSite com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getSite | ( | ) |
Returns the nClusterSite for the cluster.
String com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getState | ( | ) |
Returns the realms cluster state.
nClusterStatusEntry com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getStatus | ( | String | realm | ) |
Returns nClusterStatusEntry for the specified realm.
realm | name to get status for. |
nClusterStatusEntry com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getStatus | ( | int | idx | ) |
Returns nClusterStatusEntry for the realm at the index specified.
idx | to get the status for. |
int com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getStatusCounter | ( | ) |
Returns the number of times that a realm node is referenced.
Only when this number is 1 the realm node and the correspondent status can be removed from the cluster node.
boolean com.pcbsys.nirvana.nAdminAPI.nClusterStatus.hasSite | ( | ) |
Returns true if the cluster has a site.
int com.pcbsys.nirvana.nAdminAPI.nClusterStatus.size | ( | ) |
The number of known nodes within the cluster.