public class LocalizedCacheTopology extends CacheTopology
CacheTopology with information about keys owned by the local node.CacheTopology.Externalizer, CacheTopology.Phase| Constructor and Description |
|---|
LocalizedCacheTopology(CacheMode cacheMode,
CacheTopology cacheTopology,
KeyPartitioner keyPartitioner,
Address localAddress) |
| Modifier and Type | Method and Description |
|---|---|
DistributionInfo |
getDistribution(Object key) |
DistributionInfo |
getDistributionForSegment(int segmentId) |
Address |
getLocalAddress() |
IntSet |
getLocalReadSegments() |
int |
getSegment(Object key) |
Collection<Address> |
getWriteOwners(Collection<?> keys) |
Collection<Address> |
getWriteOwners(Object key) |
boolean |
isReadOwner(Object key) |
boolean |
isWriteOwner(Object key) |
static LocalizedCacheTopology |
makeSingletonTopology(CacheMode cacheMode,
Address localAddress) |
equals, getActualMembers, getCurrentCH, getMembers, getMembersPersistentUUIDs, getPendingCH, getPhase, getReadConsistentHash, getRebalanceId, getTopologyId, getUnionCH, getWriteConsistentHash, hashCode, logRoutingTableInformation, toStringpublic LocalizedCacheTopology(CacheMode cacheMode, CacheTopology cacheTopology, KeyPartitioner keyPartitioner, Address localAddress)
public static LocalizedCacheTopology makeSingletonTopology(CacheMode cacheMode, Address localAddress)
public boolean isReadOwner(Object key)
true iff key key can be read without going remote.public boolean isWriteOwner(Object key)
true iff writing a value for key key will update it on the local node.public int getSegment(Object key)
keypublic DistributionInfo getDistributionForSegment(int segmentId)
segment, including the primary owner.public DistributionInfo getDistribution(Object key)
key, including the primary owner.public Collection<Address> getWriteOwners(Object key)
key.public Collection<Address> getWriteOwners(Collection<?> keys)
keys.public IntSet getLocalReadSegments()
public Address getLocalAddress()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.