Class 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 of WebServerDef.
    Since:
    MicroStrategy Web 9.0.0
    • 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 startup
      void clear()
      Removes all server names from the internal cluster set
      java.lang.String generateXML()
      Generates XML from its internal structures
      java.util.Set<java.lang.String> getCopyOfMembership()
      Returns a copy of the current membership
      void parseXML​(java.lang.String xml)
      Sets the internal structures from the provided XML
      void remove​(java.lang.String serverName)
      Removes a server name from the set of servers to be included in a cluster at startup
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServerClusteringStartupMembershipBuilder

        public ServerClusteringStartupMembershipBuilder()
    • 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 of server1 server2 ...
        Throws:
        org.xml.sax.SAXException
      • generateXML

        public java.lang.String generateXML()
        Generates XML from its internal structures
        Returns:
        xml String in the form of server1 server2 ...
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object