@Service public class PortPairGroupManager extends org.onosproject.event.AbstractListenerManager<PortPairGroupEvent,PortPairGroupListener> implements PortPairGroupService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
PortPairGroupManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
createPortPairGroup(PortPairGroup portPairGroup)
Creates a PortPairGroup in the store.
|
void |
deactivate() |
boolean |
exists(PortPairGroupId portPairGroupId)
Returns if the port pair group is existed.
|
PortPairGroup |
getPortPairGroup(PortPairGroupId portPairGroupId)
Returns the portPairGroup with the given identifier.
|
int |
getPortPairGroupCount()
Returns the number of port pair groups known to the system.
|
Iterable<PortPairGroup> |
getPortPairGroups()
Returns an iterable collection of the currently known port pair groups.
|
boolean |
removePortPairGroup(PortPairGroupId portPairGroupId)
Deletes portPairGroup by given portPairGroupId.
|
boolean |
updatePortPairGroup(PortPairGroup portPairGroup)
Updates the portPairGroup 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(PortPairGroupId portPairGroupId)
PortPairGroupServiceexists in interface PortPairGroupServiceportPairGroupId - port pair group identifierpublic int getPortPairGroupCount()
PortPairGroupServicegetPortPairGroupCount in interface PortPairGroupServicepublic Iterable<PortPairGroup> getPortPairGroups()
PortPairGroupServicegetPortPairGroups in interface PortPairGroupServicepublic PortPairGroup getPortPairGroup(PortPairGroupId portPairGroupId)
PortPairGroupServicegetPortPairGroup in interface PortPairGroupServiceportPairGroupId - port pair group identifierpublic boolean createPortPairGroup(PortPairGroup portPairGroup)
PortPairGroupServicecreatePortPairGroup in interface PortPairGroupServiceportPairGroup - the port pair group to createpublic boolean updatePortPairGroup(PortPairGroup portPairGroup)
PortPairGroupServiceupdatePortPairGroup in interface PortPairGroupServiceportPairGroup - the port pair group to updatepublic boolean removePortPairGroup(PortPairGroupId portPairGroupId)
PortPairGroupServiceremovePortPairGroup in interface PortPairGroupServiceportPairGroupId - id of port pair group to remove