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 SummaryAll 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.intgetNumberOfPartitions()Returns the total number of partitions.- 
Methods inherited from interface org.onosproject.event.ListenerServiceaddListener, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getNumberOfPartitionsint getNumberOfPartitions() Returns the total number of partitions.- Returns:
- number of partitions
 
 - 
getConfiguredMembersjava.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
 
 - 
getAllPartitionIdsjava.util.Set<PartitionId> getAllPartitionIds() Returns the identifiers of all partitions.- Returns:
- set of partition identifiers
 
 
- 
 
-