|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.cmi.lb.strategy.LoadFactorComparator<T>
T - The type of objects that are load-balancedpublic final class LoadFactorComparator<T extends org.ow2.cmi.lb.LoadBalanceable>
A comparator of load-factors.
| Constructor Summary | |
|---|---|
LoadFactorComparator(org.ow2.cmi.controller.common.ClusterViewManager clusterViewManager)
Construct a comparator of load-factor. |
|
| Method Summary | |
|---|---|
int |
compare(T loadBalanceable1,
T loadBalanceable2)
Compares the load-factors of two LoadBalanceable with the load factor of their ServerRef. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public LoadFactorComparator(org.ow2.cmi.controller.common.ClusterViewManager clusterViewManager)
ClusterViewManager.
clusterViewManager - the manager of the cluster view| Method Detail |
|---|
public int compare(T loadBalanceable1,
T loadBalanceable2)
LoadBalanceable with the load factor of their ServerRef.
compare in interface java.util.Comparator<T extends org.ow2.cmi.lb.LoadBalanceable>loadBalanceable1 - the first LoadBalanceableloadBalanceable2 - the second LoadBalanceable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||