|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DistributionManager
A component that manages the distribution of elements across a cache cluster
| Method Summary | |
|---|---|
boolean |
isLocal(Object key)
|
List<Address> |
locate(Object key)
Locates a key in a cluster. |
Map<Object,List<Address>> |
locateAll(Collection<Object> keys)
Locates a list of keys in a cluster. |
void |
rehash(Collection<Address> newList)
|
| Method Detail |
|---|
void rehash(Collection<Address> newList)
boolean isLocal(Object key)
List<Address> locate(Object key)
key - key to test
Map<Object,List<Address>> locateAll(Collection<Object> keys)
locate(Object) the returned addresses may not be owners
of the keys if a rehash happens to be in progress or is pending, so when querying these servers, invalid responses
should be checked for and the next address checked accordingly.
keys - list of keys to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||