@Service public class RouterManager extends Object implements RouterService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.store.service.EventuallyConsistentMap<RouterId,Router> |
routerStore |
protected org.onosproject.store.service.StorageService |
storageService |
protected SubnetService |
subnetService |
protected TenantNetworkService |
tenantNetworkService |
protected VirtualPortService |
virtualPortService |
| Constructor and Description |
|---|
RouterManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(RouterListener listener)
Adds the specified listener to Router manager.
|
boolean |
createRouters(Collection<Router> routers)
Creates new Routers.
|
void |
deactivate() |
boolean |
exists(RouterId routerId)
Returns exists or not of specific router identifier.
|
Router |
getRouter(RouterId routerId)
Returns the Router with the specified identifier.
|
Collection<Router> |
getRouters()
Returns a collection of the currently known Routers.
|
void |
removeListener(RouterListener listener)
Removes the specified listener to Router manager.
|
boolean |
removeRouters(Collection<RouterId> routerIds)
Removes the specified Routers from the store.
|
boolean |
updateRouters(Collection<Router> routers)
Updates existing Routers.
|
protected org.onosproject.store.service.EventuallyConsistentMap<RouterId,Router> routerStore
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
@Reference(cardinality=MANDATORY_UNARY) protected TenantNetworkService tenantNetworkService
@Reference(cardinality=MANDATORY_UNARY) protected VirtualPortService virtualPortService
@Reference(cardinality=MANDATORY_UNARY) protected SubnetService subnetService
@Activate public void activate()
@Deactivate public void deactivate()
public boolean exists(RouterId routerId)
RouterServiceexists in interface RouterServicerouterId - router identifierpublic Collection<Router> getRouters()
RouterServicegetRouters in interface RouterServicepublic Router getRouter(RouterId routerId)
RouterServicegetRouter in interface RouterServicerouterId - Router identifierpublic boolean createRouters(Collection<Router> routers)
RouterServicecreateRouters in interface RouterServicerouters - the collection of Routerspublic boolean updateRouters(Collection<Router> routers)
RouterServiceupdateRouters in interface RouterServicerouters - the collection of Routerspublic boolean removeRouters(Collection<RouterId> routerIds)
RouterServiceremoveRouters in interface RouterServicerouterIds - the collection of Routers identifierpublic void addListener(RouterListener listener)
RouterServiceaddListener in interface RouterServicelistener - Router listenerpublic void removeListener(RouterListener listener)
RouterServiceremoveListener in interface RouterServicelistener - Router listener