|
|||||||||
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.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 | |
---|---|
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 |
---|
public static final java.util.Random localRandomizer
Constructor Detail |
---|
public RandomRobin()
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 |