Class TopologyInfo
java.lang.Object
org.infinispan.client.hotrod.impl.TopologyInfo
Maintains topology information about caches.
- Author:
- gustavonalle, Dan Berindei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConsistentHash(int numSegments, short hashFunctionVersion, SocketAddress[][] segmentOwners) voidforEachCache(BiConsumer<String, CacheInfo> action) getCacheInfo(String cacheName) getCacheTopologyInfo(String cacheName) getOrCreateCacheInfo(String cacheName) getPrimarySegmentsByServer(String cacheName) getServers(String cacheName) intvoidReset a single ache to the initial server list.voidswitchCluster(ClusterInfo newCluster) Switch to another cluster and update the topologies of all caches with its initial server list.voidupdateCacheInfo(String cacheName, CacheInfo oldCacheInfo, CacheInfo newCacheInfo)
-
Constructor Details
-
TopologyInfo
-
-
Method Details
-
getPrimarySegmentsByServer
-
getServers
-
getAllServers
-
createConsistentHash
public SegmentConsistentHash createConsistentHash(int numSegments, short hashFunctionVersion, SocketAddress[][] segmentOwners) -
getConsistentHashFactory
-
getCacheTopologyInfo
-
getCacheInfo
-
getOrCreateCacheInfo
-
switchCluster
Switch to another cluster and update the topologies of all caches with its initial server list. -
reset
Reset a single ache to the initial server list.Useful if there are still live servers in the cluster, but all the server in this cache's current topology are unreachable.
-
getCluster
-
getTopologyAge
public int getTopologyAge() -
updateCacheInfo
-
forEachCache
-