Package org.onosproject.store.primitives
Interface PartitionService
-
- All Superinterfaces:
ListenerService<PartitionEvent,PartitionEventListener>
public interface PartitionService extends ListenerService<PartitionEvent,PartitionEventListener>
Service used for accessing information about storage partitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.int
getNumberOfPartitions()
Returns the total number of partitions.-
Methods inherited from interface org.onosproject.event.ListenerService
addListener, removeListener
-
-
-
-
Method Detail
-
getNumberOfPartitions
int getNumberOfPartitions()
Returns the total number of partitions.- Returns:
- number of partitions
-
getConfiguredMembers
java.util.Set<NodeId> getConfiguredMembers(PartitionId partitionId)
Returns the set of controller nodes configured to be members of a partition.- Parameters:
partitionId
- partition identifier- Returns:
- set of node identifiers
-
getAllPartitionIds
java.util.Set<PartitionId> getAllPartitionIds()
Returns the identifiers of all partitions.- Returns:
- set of partition identifiers
-
-