Package com.yahoo.search.cluster
Class Hasher<T>
java.lang.Object
com.yahoo.search.cluster.Hasher<T>
A hasher load balances between a set of nodes, represented by object ids.
- Author:
- Arne B Fossaa, bratseth, Prashanth B. Bhat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Hasher
public Hasher()
-
-
Method Details
-
add
Adds a node with load factor 100 -
add
Adds a code with a load factor. The load factor is relative to the load of the other added nodes and determines how often this node will be selected compared to the other nodes -
remove
Removes a node -
getNodes
Returns a list of nodes that are up.
-