Examples of locateAllOwners()


Examples of org.infinispan.distribution.ch.ConsistentHash.locateAllOwners()

            // 2. If the local topology = command topology + 1 and pendingCH = null, there are no new owners
            ConsistentHash pendingCh = cacheTopology.getPendingCH();
            if (pendingCh != null && cmdTopologyId < localTopologyId + 1) {
               ConsistentHash writeCh = cacheTopology.getWriteConsistentHash();
               Set<Object> affectedKeys = getAffectedKeys(ctx, command);
               Set<Address> newTargets = writeCh.locateAllOwners(affectedKeys);
               newTargets.remove(rpcManager.getAddress());
               if (!newTargets.isEmpty()) {
                  // Update the topology id to prevent cycles
                  command.setTopologyId(localTopologyId);
                  log.tracef("Forwarding command %s to new targets %s", command, newTargets);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.