|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.ha.AbstractLoadBalancePolicy org.jboss.soa.esb.listeners.ha.FirstAvailable
public class FirstAvailable
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 epr in the list dies. In this case, fail-over will occur, and a new epr will become the first member and invocation will continously be invoked on the same new epr until its death. Code based on jbossas ha framework.
LoadBalancePolicy
Field Summary | |
---|---|
protected EPR |
electedEPR
|
Constructor Summary | |
---|---|
FirstAvailable()
|
Method Summary | |
---|---|
protected EPR |
chooseEPRByPolicy(ServiceClusterInfo serviceCluster)
|
Methods inherited from class org.jboss.soa.esb.listeners.ha.AbstractLoadBalancePolicy |
---|
chooseEPR |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient EPR electedEPR
Constructor Detail |
---|
public FirstAvailable()
Method Detail |
---|
protected EPR chooseEPRByPolicy(ServiceClusterInfo serviceCluster)
chooseEPRByPolicy
in class AbstractLoadBalancePolicy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |