@Service public class OnosXosIntegrationManager extends Object implements VoltTenantService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cfg.ComponentConfigService |
cfgService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.flowobjective.FlowObjectiveService |
flowObjectiveService |
protected int |
xosProviderService |
protected String |
xosServerAddress |
protected int |
xosServerPort |
| Constructor and Description |
|---|
OnosXosIntegrationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
VoltTenant |
addTenant(VoltTenant newTenant)
Creates a new tenant and adds it to the XOS instance.
|
void |
deactivate() |
Set<VoltTenant> |
getAllTenants()
Queries all the tenants.
|
VoltTenant |
getTenant(long id)
Gets a single tenant for the given ID.
|
void |
modified(org.osgi.service.component.ComponentContext context) |
void |
removeTenant(long id)
Removes a tenant given its ID.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService cfgService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService
@Property(name="xosServerAddress",
value="10.254.1.22",
label="XOS Server address")
protected String xosServerAddress
@Property(name="xosServerPort",
intValue=8000,
label="XOS Server port")
protected int xosServerPort
@Property(name="xosProviderService",
intValue=1,
label="XOS Provider Service")
protected int xosProviderService
@Activate public void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate()
@Modified public void modified(org.osgi.service.component.ComponentContext context)
public Set<VoltTenant> getAllTenants()
VoltTenantServicegetAllTenants in interface VoltTenantServicepublic void removeTenant(long id)
VoltTenantServiceremoveTenant in interface VoltTenantServiceid - if od tenant to remove.public VoltTenant addTenant(VoltTenant newTenant)
VoltTenantServiceaddTenant in interface VoltTenantServicenewTenant - tenant to addpublic VoltTenant getTenant(long id)
VoltTenantServicegetTenant in interface VoltTenantServiceid - ID of the tenant to fetchCopyright © 2016. All rights reserved.