|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.carol.cmi.lb.policy.AbsLBPolicy<T>
org.ow2.carol.cmi.lb.policy.RoundRobinPolicy<T>
T - The type of object that was load-balanced@ThreadSafe public final class RoundRobinPolicy<T extends org.ow2.carol.cmi.lb.LoadBalanceable>
The default load-balancing policy (Round Robin) that always chooses the next available load-balanceable.
| Constructor Summary | |
|---|---|
RoundRobinPolicy()
Build the Round Robin policy. |
|
| Method Summary | |
|---|---|
T |
choose(java.util.List<T> loadBalanceables)
Chooses the next load-balanceable among the list of load-balanceables. |
java.lang.String |
toString()
|
| Methods inherited from class org.ow2.carol.cmi.lb.policy.AbsLBPolicy |
|---|
getLBStrategy, onInvokeException, onLookupException, onReturn, setClusterViewManager, setLBStrategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoundRobinPolicy()
| Method Detail |
|---|
public T choose(java.util.List<T> loadBalanceables)
throws org.ow2.carol.cmi.lb.NoLoadBalanceableException
choose in interface org.ow2.carol.cmi.lb.policy.ILBPolicy<T extends org.ow2.carol.cmi.lb.LoadBalanceable>choose in class AbsLBPolicy<T extends org.ow2.carol.cmi.lb.LoadBalanceable>loadBalanceables - the list of load-balanceables
org.ow2.carol.cmi.lb.NoLoadBalanceableException - if no server availablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||