public final class PartitionStateGeneratorImpl extends Object implements PartitionStateGenerator
| Constructor and Description | 
|---|
PartitionStateGeneratorImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
Address[][] | 
initialize(Collection<MemberGroup> memberGroups,
          int partitionCount)
Returns the initial layout for the partitions. 
 | 
Address[][] | 
reArrange(Collection<MemberGroup> memberGroups,
         InternalPartition[] currentState)
Rearranges the partition layout. 
 | 
public Address[][] initialize(Collection<MemberGroup> memberGroups, int partitionCount)
PartitionStateGeneratorinitialize in interface PartitionStateGeneratorpartitionCount - the number of partitions.public Address[][] reArrange(Collection<MemberGroup> memberGroups, InternalPartition[] currentState)
PartitionStateGeneratorreArrange in interface PartitionStateGeneratorcurrentState - the current partition state.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.