@Service public class PortPairManager extends org.onosproject.event.AbstractListenerManager<PortPairEvent,PortPairListener> implements PortPairService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
PortPairManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
createPortPair(PortPair portPair)
Creates a PortPair in the store.
|
void |
deactivate() |
boolean |
exists(PortPairId portPairId)
Returns if the port pair is existed.
|
PortPair |
getPortPair(PortPairId portPairId)
Returns the portPair with the given identifier.
|
int |
getPortPairCount()
Returns the number of port pairs known to the system.
|
Iterable<PortPair> |
getPortPairs()
Returns an iterable collection of the currently known port pairs.
|
boolean |
removePortPair(PortPairId portPairId)
Deletes portPair by given portPairId.
|
boolean |
updatePortPair(PortPair portPair)
Updates the portPair in the store.
|
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatcher@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Activate public void activate()
@Deactivate public void deactivate()
public boolean exists(PortPairId portPairId)
PortPairServiceexists in interface PortPairServiceportPairId - port pair identifierpublic int getPortPairCount()
PortPairServicegetPortPairCount in interface PortPairServicepublic Iterable<PortPair> getPortPairs()
PortPairServicegetPortPairs in interface PortPairServicepublic PortPair getPortPair(PortPairId portPairId)
PortPairServicegetPortPair in interface PortPairServiceportPairId - port pair identifierpublic boolean createPortPair(PortPair portPair)
PortPairServicecreatePortPair in interface PortPairServiceportPair - the port pair to createpublic boolean updatePortPair(PortPair portPair)
PortPairServiceupdatePortPair in interface PortPairServiceportPair - the port pair to updatepublic boolean removePortPair(PortPairId portPairId)
PortPairServiceremovePortPair in interface PortPairServiceportPairId - id of port pair to remove