|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.listeners.ha.RandomRobin
public class RandomRobin
LoadBalancingPolicy implementation that always fully randomly select its epr (without basing its decision on any historic). Code based on jbossas ha framework.
Field Summary | |
---|---|
static java.util.Random |
localRandomizer
This needs to be a class variable or else you end up with multiple Random numbers with the same seed when many clients lookup a proxy. |
Constructor Summary | |
---|---|
RandomRobin()
|
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 |
---|
public static final java.util.Random localRandomizer
Constructor Detail |
---|
public RandomRobin()
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 |