com.hazelcast.partition.impl
Interface PartitionStateGenerator
- All Known Implementing Classes:
- PartitionStateGeneratorImpl
public interface PartitionStateGenerator
initialize
Address[][] initialize(Collection<MemberGroup> groups,
int partitionCount)
- Returns the initial layout for the partitions.
A 2 dimensional array of addresses is returned where the first index is the partition id, and
the second index is the replica index.
- Parameters:
groups
- partitionCount
- the number of partitions.
- Returns:
reArrange
Address[][] reArrange(Collection<MemberGroup> groups,
InternalPartition[] currentState)
- Rearranges the partition layout.
This method does not actually change the partitions, but send back the updated layout.
A 2 dimensional array of addresses is returned where the first index is the partition id, and
the second index is the replica index.
- Parameters:
groups
- currentState
- the current partition state.
- Returns:
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.