Save This Page
Home » JBoss-5.1.0 » org.jboss.ha » singleton » [javadoc | source]
org.jboss.ha.singleton
public class: PreferredMasterElectionPolicy [javadoc | source]
java.lang.Object
   org.jboss.ha.singleton.HASingletonElectionPolicySimple
      org.jboss.ha.singleton.PreferredMasterElectionPolicy

All Implemented Interfaces:
    PreferredMasterElectionPolicyMBean, HASingletonElectionPolicy, HASingletonElectionPolicySimpleMBean

Election policy that chooses the node where the singleton should run based on the given preferred master node in ip_address:port_number or host_name:port_number format. If the preferred master is null, or its ip_address does not resolve to a valid host name, or the port number is invalid, it delegates to the standard policy.
Method from org.jboss.ha.singleton.PreferredMasterElectionPolicy Summary:
elect,   getPreferredMaster,   setPreferredMaster
Methods from org.jboss.ha.singleton.HASingletonElectionPolicySimple:
elect,   getPosition,   setPosition
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ha.singleton.PreferredMasterElectionPolicy Detail:
 public ClusterNode elect(List<ClusterNode> candidates) 
 public String getPreferredMaster() 
 public  void setPreferredMaster(String value)