Package com.hazelcast.core

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


      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

Related Classes of com.hazelcast.core.PartitionService

Copyright © 2018 www.massapicom. 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.