@Service public class RouterInterfaceManager extends Object implements RouterInterfaceService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.store.service.EventuallyConsistentMap<SubnetId,RouterInterface> |
routerInterfaceStore |
protected RouterService |
routerService |
protected org.onosproject.store.service.StorageService |
storageService |
protected SubnetService |
subnetService |
protected VirtualPortService |
virtualPortService |
| Constructor and Description |
|---|
RouterInterfaceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(RouterInterfaceListener listener)
Adds the specified listener to Router Interface manager.
|
boolean |
addRouterInterface(RouterInterface routerInterface)
Adds the specified RouterInterface.
|
void |
deactivate() |
boolean |
exists(SubnetId subnetId)
Returns exists or not of specific subnet identifier.
|
RouterInterface |
getRouterInterface(SubnetId subnetId)
Returns the Router interface with the specified subnet identifier.
|
Collection<RouterInterface> |
getRouterInterfaces()
Returns a collection of the currently known Router interface.
|
void |
removeListener(RouterInterfaceListener listener)
Removes the specified listener to RouterInterface manager.
|
boolean |
removeRouterInterface(RouterInterface routerInterface)
Removes the specified RouterInterface.
|
protected org.onosproject.store.service.EventuallyConsistentMap<SubnetId,RouterInterface> routerInterfaceStore
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 VirtualPortService virtualPortService
@Reference(cardinality=MANDATORY_UNARY) protected SubnetService subnetService
@Reference(cardinality=MANDATORY_UNARY) protected RouterService routerService
@Activate public void activate()
@Deactivate public void deactivate()
public boolean exists(SubnetId subnetId)
RouterInterfaceServiceexists in interface RouterInterfaceServicesubnetId - subnet identifierpublic Collection<RouterInterface> getRouterInterfaces()
RouterInterfaceServicegetRouterInterfaces in interface RouterInterfaceServicepublic RouterInterface getRouterInterface(SubnetId subnetId)
RouterInterfaceServicegetRouterInterface in interface RouterInterfaceServicesubnetId - subnet identifierpublic boolean addRouterInterface(RouterInterface routerInterface)
RouterInterfaceServiceaddRouterInterface in interface RouterInterfaceServicerouterInterface - the interface add to routerpublic boolean removeRouterInterface(RouterInterface routerInterface)
RouterInterfaceServiceremoveRouterInterface in interface RouterInterfaceServicerouterInterface - the interface remove from routerpublic void addListener(RouterInterfaceListener listener)
RouterInterfaceServiceaddListener in interface RouterInterfaceServicelistener - Router Interface listenerpublic void removeListener(RouterInterfaceListener listener)
RouterInterfaceServiceremoveListener in interface RouterInterfaceServicelistener - Router Interface listener