org.scale7.cassandra.pelops.pool
Interface CommonsBackedPool.INodeSelectionStrategy

All Known Implementing Classes:
LeastLoadedNodeSelectionStrategy
Enclosing class:
CommonsBackedPool

public static interface CommonsBackedPool.INodeSelectionStrategy

Interface used to define how nodes should be selected.


Method Summary
 org.scale7.cassandra.pelops.pool.PooledNode select(CommonsBackedPool pool, Set<String> nodeAddresses, String notNodeHint)
          Called when a node need to be selected.
 

Method Detail

select

org.scale7.cassandra.pelops.pool.PooledNode select(CommonsBackedPool pool,
                                                   Set<String> nodeAddresses,
                                                   String notNodeHint)
Called when a node need to be selected.

Parameters:
pool - the pool (just in case you need it)
nodeAddresses - the node addresses to select from
notNodeHint - a hint of the node address that the selection strategy should avoid (possible null)
Returns:
the selected node (null if none are available)


Copyright © 2011. All Rights Reserved.