public interface DistributionManager
Modifier and Type | Method and Description |
---|---|
LocalizedCacheTopology |
getCacheTopology() |
default ConsistentHash |
getConsistentHash()
Deprecated.
Since 9.0, please use
getWriteConsistentHash() instead. |
DataLocality |
getLocality(Object key)
Deprecated.
Since 9.0, please use
getCacheTopology().getDistributionInfo(key) instead. |
Address |
getPrimaryLocation(Object key)
Deprecated.
Since 9.0, please use
getCacheTopology().getDistributionInfo(key) instead. |
ConsistentHash |
getReadConsistentHash() |
ConsistentHash |
getWriteConsistentHash() |
boolean |
isAffectedByRehash(Object key)
Tests whether a given key is affected by a rehash that may be in progress.
|
boolean |
isJoinComplete()
Tests whether the current instance has completed joining the cluster
|
boolean |
isRehashInProgress()
Tests whether a rehash is in progress
|
List<Address> |
locate(Object key)
Deprecated.
Since 9.0, please use
getCacheTopology().getDistributionInfo(key) instead. |
Set<Address> |
locateAll(Collection<Object> keys)
Deprecated.
Since 9.0, no direct replacement.
|
void |
setCacheTopology(CacheTopology cacheTopology)
Deprecated.
Internal only.
|
@Deprecated DataLocality getLocality(Object key)
getCacheTopology().getDistributionInfo(key)
instead.key
- key to test@Deprecated List<Address> locate(Object key)
getCacheTopology().getDistributionInfo(key)
instead.key
- key to test@Deprecated Address getPrimaryLocation(Object key)
getCacheTopology().getDistributionInfo(key)
instead.locate(Object)
key
- key to test@Deprecated Set<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 locate@Deprecated default ConsistentHash getConsistentHash()
getWriteConsistentHash()
instead.ConsistentHash getReadConsistentHash()
ConsistentHash getWriteConsistentHash()
boolean isAffectedByRehash(Object key)
key
- key to testboolean isRehashInProgress()
boolean isJoinComplete()
LocalizedCacheTopology getCacheTopology()
@Deprecated void setCacheTopology(CacheTopology cacheTopology)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.