org.ow2.carol.cmi.lb.strategy
Interface ILBStrategy<T extends LoadBalanceable>

Type Parameters:
T - The type of object that was load-balanced
All Superinterfaces:
java.io.Serializable

public interface ILBStrategy<T extends LoadBalanceable>
extends java.io.Serializable

Interface of the load-balancing strategies. A strategy allows to modify a list of load-balanceables before applying a policy to elect only one load-balanceable.

Author:
The new CMI team

Method Summary
 java.util.List<T> choose(java.util.List<T> loadBalanceables)
          Returns a new list of load-balanceables by modifying the given list.
 

Method Detail

choose

java.util.List<T> choose(java.util.List<T> loadBalanceables)
Returns a new list of load-balanceables by modifying the given list.

Parameters:
loadBalanceables - a list of load-balanceables
Returns:
a new list of load-balanceables by modifying the given list


Copyright © 2007 OW2 Consortium. All Rights Reserved.