@Service public class PortChainManager extends org.onosproject.event.AbstractListenerManager<PortChainEvent,PortChainListener> implements PortChainService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
PortChainManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
createPortChain(PortChain portChain)
Creates a PortChain in the store.
|
void |
deactivate() |
boolean |
exists(PortChainId portChainId)
Returns if the port chain is existed.
|
PortChain |
getPortChain(PortChainId portChainId)
Returns the portChain with the given identifier.
|
int |
getPortChainCount()
Returns the number of port chains known to the system.
|
Iterable<PortChain> |
getPortChains()
Returns an iterable collection of the currently known port chains.
|
boolean |
removePortChain(PortChainId portChainId)
Deletes portChain by given portChainId.
|
boolean |
updatePortChain(PortChain portChain)
Updates the portChain 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(PortChainId portChainId)
PortChainServiceexists in interface PortChainServiceportChainId - port chain identifierpublic int getPortChainCount()
PortChainServicegetPortChainCount in interface PortChainServicepublic Iterable<PortChain> getPortChains()
PortChainServicegetPortChains in interface PortChainServicepublic PortChain getPortChain(PortChainId portChainId)
PortChainServicegetPortChain in interface PortChainServiceportChainId - port chain identifierpublic boolean createPortChain(PortChain portChain)
PortChainServicecreatePortChain in interface PortChainServiceportChain - the port chain to createpublic boolean updatePortChain(PortChain portChain)
PortChainServiceupdatePortChain in interface PortChainServiceportChain - the port chain to updatepublic boolean removePortChain(PortChainId portChainId)
PortChainServiceremovePortChain in interface PortChainServiceportChainId - id of port chain to remove