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

Type Parameters:
T - The type of object that was load-balanced
All Known Subinterfaces:
IFilter

public interface IStrategy<T extends LoadBalanceable>

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.Collection<T> loadBalanceables)
          Returns a new list of load-balanceables by modifying the given list.
 

Method Detail

choose

java.util.List<T> choose(java.util.Collection<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 © 2009 OW2 Consortium. All Rights Reserved.