Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha.framework » interfaces » [javadoc | source]
org.jboss.ha.framework.interfaces
public class: FirstAvailableIdenticalAllProxies [javadoc | source]
java.lang.Object
   org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies

All Implemented Interfaces:
    LoadBalancePolicy

LoadBalancingPolicy implementation that always favor the first available target i.e. no load balancing occurs. Nevertheless, the first target is randomly selected. This does not mean that fail-over will not occur if the first member in the list dies. In this case, fail-over will occur, and a new target will become the first member and invocation will continously be invoked on the same new target until its death. Each proxy using this policy will *not* elect its own prefered target: the target *is* shared with all proxies that belong to the same family (for a different behaviour please take a look at FirstAvailable)
Method from org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies Summary:
chooseTarget,   chooseTarget,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies Detail:
 public Object chooseTarget(FamilyClusterInfo clusterFamily) 
 public Object chooseTarget(FamilyClusterInfo clusterFamily,
    Invocation routingDecision) 
 public  void init(HARMIClient father)