- com
- pcbsys
- nirvana
- nAdminAPI
- nClusterSite
This class defines a collection of realms within a cluster into a physical site / location. More...
Inherits SortedObject.
Public Member Functions | |
void | addMember (String name) throws Exception |
Add a realm to this site. More... | |
void | delMember (String realmName) throws Exception |
Remove a realm as a member of a site. More... | |
boolean | equals (long aLong) |
Compares this object with the passed object. More... | |
String | findNode (String name) |
Find a specific member realm in this site. More... | |
Iterator | getIterator () |
Returns an iterator of known site member realms. More... | |
String | getName () |
Get the name of the defined cluster site. More... | |
Enumeration | getNodes () |
Return the members defined in this site. More... | |
int | getNoOfMembers () |
Return the number of members defined in this site. More... | |
boolean | isMatch (Object item) |
Compares this object with the passed object. More... | |
boolean | isMember (String name) |
Check if a realm is a member of this site. More... | |
boolean | isPrime () |
Returns if the defined site is regarded as prime. More... | |
boolean | lessThan (long aLong) |
Compares this object with the passed object. More... | |
boolean | lessThan (Object item) |
Compares this object with the passed object. More... | |
void | setPrime (boolean flag) throws Exception |
Sets whether this site is defined as prime. 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
void com.pcbsys.nirvana.nAdminAPI.nClusterSite.addMember | ( | String | name | ) | throws Exception |
Add a realm to this site.
name | name of the realm to be added |
Exception | if the operation could not be completed |
void com.pcbsys.nirvana.nAdminAPI.nClusterSite.delMember | ( | String | realmName | ) | throws Exception |
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 |
boolean com.pcbsys.nirvana.nAdminAPI.nClusterSite.equals | ( | long | aLong | ) |
Compares this object with the passed object.
For internal use only
aLong | long to compare against |
String com.pcbsys.nirvana.nAdminAPI.nClusterSite.findNode | ( | String | name | ) |
Find a specific member realm in this site.
name | name of the realm you wish to find in the members |
Iterator com.pcbsys.nirvana.nAdminAPI.nClusterSite.getIterator | ( | ) |
Returns an iterator of known site member realms.
String com.pcbsys.nirvana.nAdminAPI.nClusterSite.getName | ( | ) |
Get the name of the defined cluster site.
Enumeration com.pcbsys.nirvana.nAdminAPI.nClusterSite.getNodes | ( | ) |
int com.pcbsys.nirvana.nAdminAPI.nClusterSite.getNoOfMembers | ( | ) |
Return the number of members defined in this site.
boolean com.pcbsys.nirvana.nAdminAPI.nClusterSite.isMatch | ( | Object | item | ) |
Compares this object with the passed object.
For internal use only
item | Object to compare against |
boolean com.pcbsys.nirvana.nAdminAPI.nClusterSite.isMember | ( | String | name | ) |
Check if a realm is a member of this site.
name | of the realm to check |
boolean com.pcbsys.nirvana.nAdminAPI.nClusterSite.isPrime | ( | ) |
Returns if the defined site is regarded as prime.
boolean com.pcbsys.nirvana.nAdminAPI.nClusterSite.lessThan | ( | long | aLong | ) |
Compares this object with the passed object.
For internal use only
aLong | long to compare against |
boolean com.pcbsys.nirvana.nAdminAPI.nClusterSite.lessThan | ( | Object | item | ) |
Compares this object with the passed object.
For internal use only
item | Object to compare against |
void com.pcbsys.nirvana.nAdminAPI.nClusterSite.setPrime | ( | boolean | flag | ) | throws Exception |
Sets whether this site is defined as prime.
flag | whether the site is prime |
Exception | if the operation could not be completed |