public interface PartitionService extends ListenerService<PartitionEvent,PartitionEventListener>
Modifier and Type | Method and Description |
---|---|
Set<PartitionId> |
getAllPartitionIds()
Returns the identifiers of all partitions.
|
Set<NodeId> |
getConfiguredMembers(PartitionId partitionId)
Returns the set of controller nodes configured to be members of a partition.
|
int |
getNumberOfPartitions()
Returns the total number of partitions.
|
addListener, removeListener
int getNumberOfPartitions()
Set<NodeId> getConfiguredMembers(PartitionId partitionId)
partitionId
- partition identifierSet<PartitionId> getAllPartitionIds()