public interface PartitionStateGenerator
Modifier and Type | Method and Description |
---|---|
PartitionReplica[][] |
arrange(Collection<MemberGroup> groups,
InternalPartition[] currentState)
Arranges the partition layout.
|
PartitionReplica[][] |
arrange(Collection<MemberGroup> groups,
InternalPartition[] currentState,
Collection<Integer> partitions)
Arranges the partition layout.
|
PartitionReplica[][] arrange(Collection<MemberGroup> groups, InternalPartition[] currentState)
This method does not actually change the partitions, but send back the updated layout.
A two-dimensional array of addresses is returned where the first index is the partition ID, and the second index is the replica index.
groups
- member groupscurrentState
- current partition state.PartitionReplica[][] arrange(Collection<MemberGroup> groups, InternalPartition[] currentState, Collection<Integer> partitions)
This method does not actually change the partitions, but send back the updated layout.
A two-dimensional array of addresses is returned where the first index is the partition ID, and the second index is the replica index.
When null partitions is given, all partitions will be arranged,
similar to arrange(Collection, InternalPartition[])
.
groups
- member groupscurrentState
- current partition state.partitions
- Partitions to be arranged only.Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.