@Service public class ServiceNetworkManager extends org.onosproject.event.ListenerRegistry<ServiceNetworkEvent,ServiceNetworkListener> implements ServiceNetworkAdminService, ServiceNetworkService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigRegistry |
configRegistry |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.host.HostService |
hostService |
protected org.slf4j.Logger |
log |
protected ServiceNetworkStore |
snetStore |
| Constructor and Description |
|---|
ServiceNetworkManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
createServiceNetwork(ServiceNetwork snet)
Creates a service network with the given information.
|
void |
createServicePort(ServicePort sport)
Creates a service port with the given information.
|
protected void |
deactivate() |
void |
purgeStates()
Purges internal network states.
|
void |
removeServiceNetwork(NetworkId netId)
Removes a service network with the given network id.
|
void |
removeServicePort(PortId portId)
Removes a service port with the given port id.
|
ServiceNetwork |
serviceNetwork(NetworkId netId)
Returns the service network with the supplied network ID.
|
Set<ServiceNetwork> |
serviceNetworks()
Returns all service networks registered in the service.
|
ServicePort |
servicePort(PortId portId)
Returns the service port with the supplied port ID.
|
Set<ServicePort> |
servicePorts()
Returns all service ports registered in the service.
|
Set<ServicePort> |
servicePorts(NetworkId netId)
Returns all service ports associated with the supplied network.
|
void |
updateServiceNetwork(ServiceNetwork snet)
Updates a service network with the given information.
|
void |
updateServicePort(ServicePort sport)
Updates a service port with the given information.
|
addListener, onProcessLimit, process, removeListener, reportProblemprotected final org.slf4j.Logger log
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry configRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.host.HostService hostService
@Reference(cardinality=MANDATORY_UNARY) protected ServiceNetworkStore snetStore
@Activate protected void activate()
@Deactivate protected void deactivate()
public void purgeStates()
ServiceNetworkAdminServicepurgeStates in interface ServiceNetworkAdminServicepublic ServiceNetwork serviceNetwork(NetworkId netId)
ServiceNetworkServiceserviceNetwork in interface ServiceNetworkServicenetId - network idpublic Set<ServiceNetwork> serviceNetworks()
ServiceNetworkServiceserviceNetworks in interface ServiceNetworkServicepublic void createServiceNetwork(ServiceNetwork snet)
ServiceNetworkAdminServicecreateServiceNetwork in interface ServiceNetworkAdminServicesnet - the new service networkpublic void updateServiceNetwork(ServiceNetwork snet)
ServiceNetworkAdminServiceupdateServiceNetwork in interface ServiceNetworkAdminServicesnet - the updated service networkpublic void removeServiceNetwork(NetworkId netId)
ServiceNetworkAdminServiceremoveServiceNetwork in interface ServiceNetworkAdminServicenetId - network idpublic ServicePort servicePort(PortId portId)
ServiceNetworkServiceservicePort in interface ServiceNetworkServiceportId - port idpublic Set<ServicePort> servicePorts()
ServiceNetworkServiceservicePorts in interface ServiceNetworkServicepublic Set<ServicePort> servicePorts(NetworkId netId)
ServiceNetworkServiceservicePorts in interface ServiceNetworkServicenetId - network idpublic void createServicePort(ServicePort sport)
ServiceNetworkAdminServicecreateServicePort in interface ServiceNetworkAdminServicesport - the new service portpublic void updateServicePort(ServicePort sport)
ServiceNetworkAdminServiceupdateServicePort in interface ServiceNetworkAdminServicesport - the updated service portpublic void removeServicePort(PortId portId)
ServiceNetworkAdminServiceremoveServicePort in interface ServiceNetworkAdminServiceportId - port idCopyright © 2018. All rights reserved.