Package org.gridgain.grid.cache.affinity.consistenthash

Examples of org.gridgain.grid.cache.affinity.consistenthash.GridCacheConsistentHashAffinityFunction.nodes()


        boolean ok = true;

        for (Map.Entry<Object, Integer> entry : data.entrySet()) {
            int part = aff.partition(entry.getKey());
            Collection<GridNode> affNodes = aff.nodes(part, nodes, 1);
            UUID act = F.<GridNode>first(affNodes).id();
            UUID exp = nodes.get(entry.getValue()).id();

            if (!exp.equals(act)) {
                ok = false;
View Full Code Here


        for (Map.Entry<Object, Integer> entry : data.entrySet()) {
            int part = aff.partition(entry.getKey());

            UUID exp = nodes.get(entry.getValue()).id();
            UUID act = F.first(aff.nodes(part, nodes, 1)).id();

            if (!exp.equals(act)) {
                ok = false;

                info("Failed to validate affinity for key '" + entry.getKey() + "' [expected=" + exp +
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.