@Service public class DistributedServiceNetworkStore extends org.onosproject.store.AbstractStore<ServiceNetworkEvent,ServiceNetworkStoreDelegate> implements ServiceNetworkStore
ConsistentMap.| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.CoreService |
coreService |
protected org.slf4j.Logger |
log |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedServiceNetworkStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
clear()
Purges the service network store.
|
void |
createServiceNetwork(ServiceNetwork snet)
Creates new service network.
|
void |
createServicePort(ServicePort sport)
Creates service port.
|
protected void |
deactivate() |
ServiceNetwork |
removeServiceNetwork(NetworkId netId)
Removes the service network with the given network id.
|
ServicePort |
removeServicePort(PortId portId)
Removes service port.
|
ServiceNetwork |
serviceNetwork(NetworkId netId)
Returns the service network with the given network id.
|
Set<ServiceNetwork> |
serviceNetworks()
Returns all service networks.
|
ServicePort |
servicePort(PortId portId)
Returns the service port with the given port id.
|
Set<ServicePort> |
servicePorts()
Returns all service ports.
|
void |
updateServiceNetwork(ServiceNetwork snet)
Updates the service network.
|
void |
updateServicePort(ServicePort sport)
Updates the service port.
|
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegateprotected final org.slf4j.Logger log
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Activate protected void activate()
@Deactivate protected void deactivate()
public void clear()
ServiceNetworkStoreclear in interface ServiceNetworkStorepublic void createServiceNetwork(ServiceNetwork snet)
ServiceNetworkStorecreateServiceNetwork in interface ServiceNetworkStoresnet - service networkpublic void updateServiceNetwork(ServiceNetwork snet)
ServiceNetworkStoreupdateServiceNetwork in interface ServiceNetworkStoresnet - service networkpublic ServiceNetwork removeServiceNetwork(NetworkId netId)
ServiceNetworkStoreremoveServiceNetwork in interface ServiceNetworkStorenetId - network idpublic ServiceNetwork serviceNetwork(NetworkId netId)
ServiceNetworkStoreserviceNetwork in interface ServiceNetworkStorenetId - network idpublic Set<ServiceNetwork> serviceNetworks()
ServiceNetworkStoreserviceNetworks in interface ServiceNetworkStorepublic void createServicePort(ServicePort sport)
ServiceNetworkStorecreateServicePort in interface ServiceNetworkStoresport - the new service portpublic void updateServicePort(ServicePort sport)
ServiceNetworkStoreupdateServicePort in interface ServiceNetworkStoresport - service portpublic ServicePort removeServicePort(PortId portId)
ServiceNetworkStoreremoveServicePort in interface ServiceNetworkStoreportId - port idpublic ServicePort servicePort(PortId portId)
ServiceNetworkStoreservicePort in interface ServiceNetworkStoreportId - port idpublic Set<ServicePort> servicePorts()
ServiceNetworkStoreservicePorts in interface ServiceNetworkStoreCopyright © 2018. All rights reserved.