Class ServerClusteringStartupMembershipBuilder
- java.lang.Object
-
- com.microstrategy.utils.xml.builders.ServerClusteringStartupMembershipBuilder
-
public class ServerClusteringStartupMembershipBuilder extends java.lang.Object
ServerClusteringStartupMembershipBuilder
is used to generate an XML server list of all the servers to be clustered at the restart of an IServer. By adding and removing server names from this object, one can control which names are placed into the generated XML. This object is designed specifically to be used when manipulating the ServerClsuteringStartupMembership serverSetting ofWebServerDef
.- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description ServerClusteringStartupMembershipBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String serverName)
Adds a new server name to the set of servers to include in the cluster at startupvoid
clear()
Removes all server names from the internal cluster setjava.lang.String
generateXML()
Generates XML from its internal structuresjava.util.Set<java.lang.String>
getCopyOfMembership()
Returns a copy of the current membershipvoid
parseXML(java.lang.String xml)
Sets the internal structures from the provided XMLvoid
remove(java.lang.String serverName)
Removes a server name from the set of servers to be included in a cluster at startupjava.lang.String
toString()
-
-
-
Method Detail
-
add
public void add(java.lang.String serverName)
Adds a new server name to the set of servers to include in the cluster at startup- Parameters:
serverName
-String
containing the member name to add to the membership
-
remove
public void remove(java.lang.String serverName)
Removes a server name from the set of servers to be included in a cluster at startup- Parameters:
serverName
-String
containing the member name to add to the membership
-
clear
public void clear()
Removes all server names from the internal cluster set
-
getCopyOfMembership
public java.util.Set<java.lang.String> getCopyOfMembership()
Returns a copy of the current membership
-
parseXML
public void parseXML(java.lang.String xml) throws org.xml.sax.SAXException
Sets the internal structures from the provided XML- Parameters:
xml
-String
in the form ofserver1 server2 ...- Throws:
org.xml.sax.SAXException
-
generateXML
public java.lang.String generateXML()
Generates XML from its internal structures- Returns:
- xml
String
in the form ofserver1 server2 ...
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-