public class

ServerClusteringStartupMembershipBuilder

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.xml.builders.ServerClusteringStartupMembershipBuilder

Class Overview

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 of WebServerDef.

Summary

Public Constructors
ServerClusteringStartupMembershipBuilder()
Public Methods
void add(String serverName)
Adds a new server name to the set of servers to include in the cluster at startup
void clear()
Removes all server names from the internal cluster set
String generateXML()
Generates XML from its internal structures
Set<String> getCopyOfMembership()
Returns a copy of the current membership
void parseXML(String xml)
Sets the internal structures from the provided XML
void remove(String serverName)
Removes a server name from the set of servers to be included in a cluster at startup
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ServerClusteringStartupMembershipBuilder ()

Public Methods

public void add (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

public void clear ()

Removes all server names from the internal cluster set

public String generateXML ()

Generates XML from its internal structures

Returns
  • xml String in the form of server1 server2 ...

public Set<String> getCopyOfMembership ()

Returns a copy of the current membership

public void parseXML (String xml)

Sets the internal structures from the provided XML

Parameters
xml String in the form of server1 server2 ...
Throws
SAXException

public void remove (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

public String toString ()