|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.cmi.lb.strategy.LoadFactorSort<T>
T - The type of objects that are load-balanced@Immutable public class LoadFactorSort<T extends org.ow2.cmi.lb.LoadBalanceable>
Defines a strategy that orders the list of servers with the load-factor.
| Constructor Summary | |
|---|---|
LoadFactorSort(org.ow2.cmi.controller.common.ClusterViewManager clusterViewManager)
Constructs a strategy for load-factor. |
|
| Method Summary | |
|---|---|
java.util.List<T> |
choose(java.util.Collection<T> loadBalanceables)
Returns a list of LoadBalanceable ordered by their load factor (to be on the decrease). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoadFactorSort(org.ow2.cmi.controller.common.ClusterViewManager clusterViewManager)
clusterViewManager - the manager of the cluster view| Method Detail |
|---|
public java.util.List<T> choose(java.util.Collection<T> loadBalanceables)
LoadBalanceable ordered by their load factor (to be on the decrease).
choose in interface org.ow2.cmi.lb.strategy.IStrategy<T extends org.ow2.cmi.lb.LoadBalanceable>loadBalanceables - a list of CMIReference
public 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 | |||||||||