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 com.pcbsys.nirvana.client.Observable.
|
virtual string | Name [get] |
| The nameof the realm which these status's are related to. 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.
virtual bool com.pcbsys.nirvana.nAdminAPI.nClusterStatus.canBeMaster |
( |
| ) |
|
|
virtual |
Indicates whether the cluster member can be selected as master within the cluster.
- Returns
- whether the member can be elected master
virtual string com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getElectedMaster |
( |
| ) |
|
|
virtual |
The name of the nodes elected master.
- Returns
- the elected master.
virtual nClusterSite com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getSite |
( |
| ) |
|
|
virtual |
Returns the site for this realm
- Returns
- This realms site
virtual string com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getState |
( |
| ) |
|
|
virtual |
Returns the realms cluster state.
- Returns
- String representing the current state of this node within the cluster.
virtual nClusterStatusEntry com.pcbsys.nirvana.nAdminAPI.nClusterStatus.getStatus |
( |
string |
realm | ) |
|
|
virtual |
Returns nClusterStatusEntry for the specified realm.
- Parameters
-
realm | name to get status for. |
- Returns
- status for specified realm.
Returns nClusterStatusEntry for the realm at the index specified
- Parameters
-
idx | to get the status for. |
- Returns
- status object at the requested index.
virtual bool com.pcbsys.nirvana.nAdminAPI.nClusterStatus.hasSite |
( |
| ) |
|
|
virtual |
Indicates whether this realm has a site
- Returns
- true if this realm has a site
virtual int com.pcbsys.nirvana.nAdminAPI.nClusterStatus.size |
( |
| ) |
|
|
virtual |
The number of known nodes within the cluster.
- Returns
- number of nodes within the cluster.
virtual string com.pcbsys.nirvana.nAdminAPI.nClusterStatus.Name |
|
get |
The nameof the realm which these status's are related to.
- Returns
- the name of the realm.