org.ow2.cmi.lb.strategy
Class LoadFactorWeight<T extends org.ow2.cmi.lb.LoadBalanceable>

java.lang.Object
  extended by org.ow2.cmi.lb.strategy.LoadFactorWeight<T>
Type Parameters:
T - The type of objects that are load-balanced
All Implemented Interfaces:
org.ow2.cmi.lb.strategy.IStrategy<T>

public class LoadFactorWeight<T extends org.ow2.cmi.lb.LoadBalanceable>
extends java.lang.Object
implements org.ow2.cmi.lb.strategy.IStrategy<T>

Defines a strategy that attributes a weight for each load-balanceable.

Author:
Loris Bouzonnet

Constructor Summary
LoadFactorWeight(org.ow2.cmi.controller.common.ClusterViewManager clusterViewManager)
           
 
Method Summary
 java.util.List<T> choose(java.util.Collection<T> loadBalanceables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadFactorWeight

public LoadFactorWeight(org.ow2.cmi.controller.common.ClusterViewManager clusterViewManager)
Method Detail

choose

public java.util.List<T> choose(java.util.Collection<T> loadBalanceables)
Specified by:
choose in interface org.ow2.cmi.lb.strategy.IStrategy<T extends org.ow2.cmi.lb.LoadBalanceable>


Copyright © 2009 OW2 Consortium. All Rights Reserved.