Class TopologyInfo


  • @NotThreadSafe
    public final class TopologyInfo
    extends Object
    Maintains topology information about caches.
    • Method Detail

      • getServers

        public List<InetSocketAddress> getServers​(org.infinispan.commons.marshall.WrappedBytes cacheName)
      • getCacheTopologyInfo

        public CacheTopologyInfo getCacheTopologyInfo​(byte[] cacheName)
      • getCacheInfo

        public CacheInfo getCacheInfo​(org.infinispan.commons.marshall.WrappedBytes cacheName)
      • getOrCreateCacheInfo

        public CacheInfo getOrCreateCacheInfo​(org.infinispan.commons.marshall.WrappedBytes cacheName)
      • switchCluster

        public void switchCluster​(ClusterInfo newCluster)
        Switch to another cluster and update the topologies of all caches with its initial server list.
      • reset

        public void reset​(org.infinispan.commons.marshall.WrappedBytes cacheName)
        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.

      • getTopologyAge

        public int getTopologyAge()
      • updateCacheInfo

        public void updateCacheInfo​(org.infinispan.commons.marshall.WrappedBytes cacheName,
                                    CacheInfo oldCacheInfo,
                                    CacheInfo newCacheInfo)
      • forEachCache

        public void forEachCache​(BiConsumer<org.infinispan.commons.marshall.WrappedBytes,​CacheInfo> action)