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

java.lang.Object
  extended by org.ow2.carol.cmi.lb.strategy.NoStrategy<T>
Type Parameters:
T - The type of object that was load-balanced
All Implemented Interfaces:
java.io.Serializable, org.ow2.carol.cmi.lb.strategy.ILBStrategy<T>

@Immutable
public class NoStrategy<T extends org.ow2.carol.cmi.lb.LoadBalanceable>
extends java.lang.Object
implements org.ow2.carol.cmi.lb.strategy.ILBStrategy<T>

A strategy that does nothing.

Author:
The new CMI team
See Also:
Serialized Form

Constructor Summary
NoStrategy()
           
 
Method Summary
 java.util.List<T> choose(java.util.List<T> loadBalanceables)
          Returns the same list of load-balanceables.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoStrategy

public NoStrategy()
Method Detail

choose

public java.util.List<T> choose(java.util.List<T> loadBalanceables)
Returns the same list of load-balanceables.

Specified by:
choose in interface org.ow2.carol.cmi.lb.strategy.ILBStrategy<T extends org.ow2.carol.cmi.lb.LoadBalanceable>
Parameters:
loadBalanceables - a list of load-balanceables
Returns:
the same list of load-balanceables

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 OW2 Consortium. All Rights Reserved.