Package com.microstrategy.web.objects
Interface WebClusterMembership
- 
public interface WebClusterMembershipTheWebClusterMembershipis a collection interface ofWebClusterMemberobjects. Apart from the typical methods of a collection, it also has some methods that can be used to remove members from the cluster or add a new member to the cluster.WebClusterMembershipobjects can be obtained through theWebClusterSourceobject- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebClusterMemberget(int index)Returns theWebClusterMemberat a given index within the collectionWebClusterMemberget(java.lang.String name)Returns theWebClusterMemberwith a given name within the collectionWebProjectManipulatorgetManipulator()GetWebProjectManipulatorobject to perform manipulations on projects in cluster.booleanisMember(java.lang.String memberName)Return whether the given member name is indeed a member of the membershipvoidjoinMember(java.lang.String nodeName)Adds a new member to the cluster by issuing a JoinCluster XML API call throughIDSSXMLClusterAdminvoidleaveMember(int index)Removes aWebClusterMemberspecified by an index from the internal collection and issues a LeaveCluster XML API call throughIDSSXMLClusterAdmin.voidleaveMember(WebClusterMember member)Removes a particularWebClusterMemberfrom the internal collection of members and issues a LeaveCluster XML API call throughIDSSXMLClusterAdminto do the same on the IServervoidleaveMember(java.lang.String name)Removes aWebClusterMemberspecified by a server name and issues a LeaveCluster XML API call throughIDSSXMLClusterAdmin.intsize()Returns the total number ofWebClusterMemberobjects in the collection 
 - 
 
- 
- 
Method Detail
- 
size
int size() throws WebObjectsException
Returns the total number ofWebClusterMemberobjects in the collection- Returns:
 - integer representing the number of objects in collecction
 - Throws:
 WebObjectsException
 
- 
get
WebClusterMember get(int index) throws WebObjectsException
Returns theWebClusterMemberat a given index within the collection- Parameters:
 index- integer value representing location in collection- Returns:
 WebClusterMemberthat index points to- Throws:
 WebObjectsException
 
- 
get
WebClusterMember get(java.lang.String name) throws WebObjectsException
Returns theWebClusterMemberwith a given name within the collection- Parameters:
 name-Stringvalue representing name of member- Returns:
 WebClusterMemberthat index points to- Throws:
 WebObjectsException
 
- 
leaveMember
void leaveMember(WebClusterMember member) throws WebObjectsException
Removes a particularWebClusterMemberfrom the internal collection of members and issues a LeaveCluster XML API call throughIDSSXMLClusterAdminto do the same on the IServer- Parameters:
 member-WebClusterMemberobject representation of IServer to remove from membership- Throws:
 WebObjectsException
 
- 
leaveMember
void leaveMember(int index) throws WebObjectsExceptionRemoves aWebClusterMemberspecified by an index from the internal collection and issues a LeaveCluster XML API call throughIDSSXMLClusterAdmin.- Parameters:
 index- integer value representing location in collection- Throws:
 WebObjectsException
 
- 
leaveMember
void leaveMember(java.lang.String name) throws WebObjectsExceptionRemoves aWebClusterMemberspecified by a server name and issues a LeaveCluster XML API call throughIDSSXMLClusterAdmin.- Parameters:
 name-Stringvalue representing name of server- Throws:
 WebObjectsException
 
- 
joinMember
void joinMember(java.lang.String nodeName) throws WebObjectsExceptionAdds a new member to the cluster by issuing a JoinCluster XML API call throughIDSSXMLClusterAdmin- Parameters:
 nodeName-Stringcontaining the name of the server to be added to the cluster- Throws:
 WebObjectsException
 
- 
getManipulator
WebProjectManipulator getManipulator() throws WebObjectsException
GetWebProjectManipulatorobject to perform manipulations on projects in cluster. Any manipulations performed with a manipulator obtained from this method will affect the project for all servers within the cluster.- Returns:
 WebProjectManipulatorto manipulate a project across cluster- Throws:
 WebObjectsException
 
- 
isMember
boolean isMember(java.lang.String memberName) throws WebObjectsExceptionReturn whether the given member name is indeed a member of the membership- Parameters:
 memberName-Stringcontaining the name of the member to be checked- Returns:
 - boolean whether the member with the name provided is a part of the membership
 - Throws:
 WebObjectsException
 
 - 
 
 -