public interface PartitionService extends ListenerService<PartitionEvent,PartitionEventListener>
Modifier and Type | Method and Description |
---|---|
java.util.Set<NodeId> |
getActiveMembersMembers(PartitionId partitionId)
Returns the set of controller nodes that are the current active members of a partition.
|
java.util.Set<PartitionId> |
getAllPartitionIds()
Returns the identifiers of all partitions.
|
java.util.Set<NodeId> |
getConfiguredMembers(PartitionId partitionId)
Returns the set of controller nodes configured to be members of a partition.
|
DistributedPrimitiveCreator |
getDistributedPrimitiveCreator(PartitionId partitionId)
Returns a DistributedPrimitiveCreator that can create primitives hosted on a partition.
|
int |
getNumberOfPartitions()
Returns the total number of partitions.
|
addListener, removeListener
int getNumberOfPartitions()
java.util.Set<NodeId> getConfiguredMembers(PartitionId partitionId)
partitionId
- partition identifierjava.util.Set<NodeId> getActiveMembersMembers(PartitionId partitionId)
partitionId
- partition identifierjava.util.Set<PartitionId> getAllPartitionIds()
DistributedPrimitiveCreator getDistributedPrimitiveCreator(PartitionId partitionId)
partitionId
- partition identifier