Examples of PartitionService


Examples of com.hazelcast.core.PartitionService

        node.shutdown(true);
    }

    public static void warmUpPartitions(HazelcastInstance...instances) throws InterruptedException {
        for (HazelcastInstance instance : instances) {
            final PartitionService ps = instance.getPartitionService();
            for (Partition partition : ps.getPartitions()) {
                while (partition.getOwner() == null) {
                    Thread.sleep(10);
                }
            }
        }
View Full Code Here

Examples of com.hazelcast.core.PartitionService

      private int ensureKeyInHost(HazelcastInstance hz, Member member) {
        int i=0;
        Member ownerMember;
        do {
          i++;
          PartitionService partitionService = hz.getPartitionService();
          Partition partition = partitionService.getPartition(i);
          ownerMember = partition.getOwner();

        } while (!ownerMember.equals(member));
        return i;
      }
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.