|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
EPR |
chooseEPR(ServiceClusterInfo serviceCluster)
Called when the ServiceInvoker wishes to know on which node the next invocation must be performed. |
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 |
---|
public EPR chooseEPR(ServiceClusterInfo serviceCluster)
LoadBalancePolicy
chooseEPR
in interface LoadBalancePolicy
serviceCluster
- A list of potential eprs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |