@Service public class TenantNetworkManager extends Object implements TenantNetworkService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.core.CoreService |
coreService |
protected Map<TenantNetworkId,TenantNetwork> |
networkIdAsKeyStore |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
TenantNetworkManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
createNetworks(Iterable<TenantNetwork> networks)
Creates tenantNetworks by networks.
|
void |
deactivate() |
boolean |
exists(TenantNetworkId networkId)
Returns if the tenantNetwork is existed.
|
TenantNetwork |
getNetwork(TenantNetworkId networkId)
Returns the tenantNetwork with the identifier.
|
int |
getNetworkCount()
Returns the number of tenantNetwork known to the system.
|
Iterable<TenantNetwork> |
getNetworks()
Returns an iterable collection of the currently known tenantNetwork.
|
boolean |
removeNetworks(Iterable<TenantNetworkId> networkIds)
Deletes tenantNetwork by tenantNetworkIds.
|
boolean |
updateNetworks(Iterable<TenantNetwork> networks)
Updates tenantNetworks by tenantNetworks.
|
protected Map<TenantNetworkId,TenantNetwork> networkIdAsKeyStore
protected org.onosproject.core.ApplicationId appId
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Activate public void activate()
@Deactivate public void deactivate()
public boolean exists(TenantNetworkId networkId)
TenantNetworkServiceexists in interface TenantNetworkServicenetworkId - tenantNetwork identifierpublic int getNetworkCount()
TenantNetworkServicegetNetworkCount in interface TenantNetworkServicepublic Iterable<TenantNetwork> getNetworks()
TenantNetworkServicegetNetworks in interface TenantNetworkServicepublic TenantNetwork getNetwork(TenantNetworkId networkId)
TenantNetworkServicegetNetwork in interface TenantNetworkServicenetworkId - TenantNetwork identifierpublic boolean createNetworks(Iterable<TenantNetwork> networks)
TenantNetworkServicecreateNetworks in interface TenantNetworkServicenetworks - the collection of tenantNetworkspublic boolean updateNetworks(Iterable<TenantNetwork> networks)
TenantNetworkServiceupdateNetworks in interface TenantNetworkServicenetworks - the collection of tenantNetworkspublic boolean removeNetworks(Iterable<TenantNetworkId> networkIds)
TenantNetworkServiceremoveNetworks in interface TenantNetworkServicenetworkIds - the collection of tenantNetworkIds