Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha.framework » interfaces » [javadoc | source]
org.jboss.ha.framework.interfaces
public interface: LoadBalancePolicy [javadoc | source]

All Implemented Interfaces:
    org.jboss.ha.client.loadbalance.LoadBalancePolicy

All Known Implementing Classes:
    RoundRobin, FirstAvailableIdenticalAllProxies, TransactionSticky, TransactionStickyRandomRobin, RandomRobin, TransactionStickyFirstAvailable, TransactionStickyFirstAvailableIdenticalAllProxies, FirstAvailable, TransactionStickyRoundRobin

Extends the parent interface by adding support for passing in a legacy (i.e. non-AOP) Invocation as an aid in making the choice of targets.
Field Summary
static final  long serialVersionUID    The serialVersionUID
    since: 1.3.4.2 -
 
Method from org.jboss.ha.framework.interfaces.LoadBalancePolicy Summary:
chooseTarget,   init
Method from org.jboss.ha.framework.interfaces.LoadBalancePolicy Detail:
 public Object chooseTarget(FamilyClusterInfo clusterFamily,
    Invocation routingDecision)
    Called when the stub wishes to know on which node the next invocation must be performed.
 public  void init(HARMIClient father)
    Initialize the policy with a reference to its parent stub. the load-balancing policy implementation can use HARMIClient data to take its decision