com.hazelcast.partition.impl
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)
PartitionStateGenerator
initialize
in interface PartitionStateGenerator
partitionCount
- the number of partitions.public Address[][] reArrange(Collection<MemberGroup> memberGroups, InternalPartition[] currentState)
PartitionStateGenerator
reArrange
in interface PartitionStateGenerator
currentState
- the current partition state.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.