This class defines a collection of realms within a cluster into a physical site / location. More...
Public Member Functions | |
virtual void | addMember (string name) |
Add a realm to this site More... | |
virtual void | delMember (string realmName) |
Remove a realm as a member of a site More... | |
bool | Equals (long aLong) |
Required as part of the SortedObject interface. More... | |
override bool | Equals (object item) |
Used to compares this Object with another to determine sorting position. More... | |
virtual string | findNode (string name) |
Find a specific member realm in this site More... | |
virtual IEnumerator | getEnumerator () |
Returns an iterator of known site member realms More... | |
virtual int | getNoOfMembers () |
Return the number of members defined in this site More... | |
virtual bool | isMember (string name) |
Check if a realm is a member of this site More... | |
virtual bool | isPrime () |
Returns if the defined site is regarded as prime More... | |
virtual bool | lessThan (long aLong) |
Required as part of the SortedObject interface. More... | |
virtual bool | lessThan (object item) |
Used to compares this Object with another to determine sorting position More... | |
virtual void | setPrime (bool flag) |
Sets whether this site is defined as prime More... | |
Properties | |
virtual string | Name [get] |
Get the name of the defined cluster site More... | |
This class defines a collection of realms within a cluster into a physical site / location.
A site can be given prime status, which means that in failover with 2 sites defined, the prime site will receive and additional vote enabling the remaining cluster realms to achieve quorum
|
virtual |
Add a realm to this site
name | name of the realm to be added |
Exception | if the operation could not be completed |
|
virtual |
Remove a realm as a member of a site
realmName | the realm to delete from the site |
Exception | if the operation could not be completed |
bool com.pcbsys.nirvana.nAdminAPI.nClusterSite.Equals | ( | long | aLong | ) |
Required as part of the SortedObject interface.
For internal use only
override bool com.pcbsys.nirvana.nAdminAPI.nClusterSite.Equals | ( | object | item | ) |
Used to compares this Object with another to determine sorting position.
For internal use only
item | Object to compare |
|
virtual |
Find a specific member realm in this site
name | name of the realm you wish to find in the members |
|
virtual |
Returns an iterator of known site member realms
|
virtual |
Return the number of members defined in this site
|
virtual |
Check if a realm is a member of this site
name | of the realm to check |
|
virtual |
Returns if the defined site is regarded as prime
|
virtual |
Required as part of the SortedObject interface.
For internal use only
|
virtual |
Used to compares this Object with another to determine sorting position
item | Object to compare |
|
virtual |
Sets whether this site is defined as prime
flag | whether the site is prime |
Exception | if the operation could not be completed |
|
get |
Get the name of the defined cluster site