public interface HashRing<T>
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
addNode(T data)
Add a node to the overlay network topology.
|
java.math.BigInteger |
locate(T data)
Determine the node that is responsible for the given data.
|
java.math.BigInteger addNode(T data) throws HashException, HashTopologyException
data - key for the node being addedHashExceptionHashTopologyExceptionjava.math.BigInteger locate(T data) throws HashException
data - the data to hash againstHashException