com.hazelcast.partition.impl
public interface PartitionStateGenerator
Modifier and Type | Method and Description |
---|---|
Address[][] |
initialize(Collection<MemberGroup> groups,
int partitionCount)
Returns the initial layout for the partitions.
|
Address[][] |
reArrange(Collection<MemberGroup> groups,
InternalPartition[] currentState)
Rearranges the partition layout.
|
Address[][] initialize(Collection<MemberGroup> groups, int partitionCount)
groups
- partitionCount
- the number of partitions.Address[][] reArrange(Collection<MemberGroup> groups, InternalPartition[] currentState)
groups
- currentState
- the current partition state.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.