@Service public class NeighbourResolutionManager extends Object implements NeighbourResolutionService
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
arpEnabled |
protected org.onosproject.cfg.ComponentConfigService |
componentConfigService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.edge.EdgePortService |
edgeService |
protected org.onosproject.net.host.HostService |
hostService |
protected boolean |
ndpEnabled |
protected org.onosproject.net.packet.PacketService |
packetService |
| Constructor and Description |
|---|
NeighbourResolutionManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected void |
deactivate() |
Map<org.onosproject.net.ConnectPoint,Collection<NeighbourHandlerRegistration>> |
getHandlerRegistrations()
Gets the neighbour message handlers that have been registered with the
service.
|
protected void |
modified(org.osgi.service.component.ComponentContext context) |
void |
registerNeighbourHandler(org.onosproject.net.ConnectPoint connectPoint,
NeighbourMessageHandler handler,
org.onosproject.core.ApplicationId appId)
Registers a neighbour message handler for all neighbour messages
incoming on the given connect point.
|
void |
registerNeighbourHandler(Interface intf,
NeighbourMessageHandler handler,
org.onosproject.core.ApplicationId appId)
Registers a neighbour message handler for all neighbour messages incoming
on the given interface.
|
void |
unregisterNeighbourHandler(org.onosproject.net.ConnectPoint connectPoint,
NeighbourMessageHandler handler,
org.onosproject.core.ApplicationId appId)
Unregisters a neighbour message handler that was assigned to a connect
point.
|
void |
unregisterNeighbourHandler(Interface intf,
NeighbourMessageHandler handler,
org.onosproject.core.ApplicationId appId)
Unregisters a neighbour message handler that was assigned to an interface.
|
void |
unregisterNeighbourHandlers(org.onosproject.core.ApplicationId appId)
Unregisters all neighbour handlers that were registered by the given
application.
|
@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 org.onosproject.net.edge.EdgePortService edgeService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.packet.PacketService packetService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService componentConfigService
@Property(name="arpEnabled",
boolValue=true,
label="Enable Address resolution protocol")
protected boolean arpEnabled
@Property(name="ndpEnabled",
boolValue=false,
label="Enable IPv6 neighbour discovery")
protected boolean ndpEnabled
@Activate protected void activate(org.osgi.service.component.ComponentContext context)
@Deactivate protected void deactivate()
@Modified protected void modified(org.osgi.service.component.ComponentContext context)
public void registerNeighbourHandler(org.onosproject.net.ConnectPoint connectPoint,
NeighbourMessageHandler handler,
org.onosproject.core.ApplicationId appId)
NeighbourResolutionServiceregisterNeighbourHandler in interface NeighbourResolutionServiceconnectPoint - connect pointhandler - neighbour message handlerappId - application IDpublic void registerNeighbourHandler(Interface intf, NeighbourMessageHandler handler, org.onosproject.core.ApplicationId appId)
NeighbourResolutionServiceregisterNeighbourHandler in interface NeighbourResolutionServiceintf - interfacehandler - neighbour message handlerappId - application IDpublic void unregisterNeighbourHandler(org.onosproject.net.ConnectPoint connectPoint,
NeighbourMessageHandler handler,
org.onosproject.core.ApplicationId appId)
NeighbourResolutionServiceunregisterNeighbourHandler in interface NeighbourResolutionServiceconnectPoint - connect pointhandler - neighbour message handlerappId - application IDpublic void unregisterNeighbourHandler(Interface intf, NeighbourMessageHandler handler, org.onosproject.core.ApplicationId appId)
NeighbourResolutionServiceunregisterNeighbourHandler in interface NeighbourResolutionServiceintf - interfacehandler - neighbour message handlerappId - application IDpublic void unregisterNeighbourHandlers(org.onosproject.core.ApplicationId appId)
NeighbourResolutionServiceunregisterNeighbourHandlers in interface NeighbourResolutionServiceappId - application IDpublic Map<org.onosproject.net.ConnectPoint,Collection<NeighbourHandlerRegistration>> getHandlerRegistrations()
NeighbourResolutionServicegetHandlerRegistrations in interface NeighbourResolutionService