Package org.onosproject.net.neighbour
Interface NeighbourResolutionService
-
public interface NeighbourResolutionServiceProvides a means of registering logic for handling neighbour messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<ConnectPoint,Collection<NeighbourHandlerRegistration>>getHandlerRegistrations()Gets the neighbour message handlers that have been registered with the service.voidregisterNeighbourHandler(ConnectPoint connectPoint, NeighbourMessageHandler handler, ApplicationId appId)Registers a neighbour message handler for all neighbour messages incoming on the given connect point.voidregisterNeighbourHandler(Interface intf, NeighbourMessageHandler handler, ApplicationId appId)Registers a neighbour message handler for all neighbour messages incoming on the given interface.voidunregisterNeighbourHandler(ConnectPoint connectPoint, NeighbourMessageHandler handler, ApplicationId appId)Unregisters a neighbour message handler that was assigned to a connect point.voidunregisterNeighbourHandler(Interface intf, NeighbourMessageHandler handler, ApplicationId appId)Unregisters a neighbour message handler that was assigned to an interface.voidunregisterNeighbourHandlers(ApplicationId appId)Unregisters all neighbour handlers that were registered by the given application.
-
-
-
Method Detail
-
registerNeighbourHandler
void registerNeighbourHandler(ConnectPoint connectPoint, NeighbourMessageHandler handler, ApplicationId appId)
Registers a neighbour message handler for all neighbour messages incoming on the given connect point.- Parameters:
connectPoint- connect pointhandler- neighbour message handlerappId- application ID
-
registerNeighbourHandler
void registerNeighbourHandler(Interface intf, NeighbourMessageHandler handler, ApplicationId appId)
Registers a neighbour message handler for all neighbour messages incoming on the given interface. Neighbour packets must match the fields of the interface in order to be handled by this message handler.- Parameters:
intf- interfacehandler- neighbour message handlerappId- application ID
-
unregisterNeighbourHandler
void unregisterNeighbourHandler(ConnectPoint connectPoint, NeighbourMessageHandler handler, ApplicationId appId)
Unregisters a neighbour message handler that was assigned to a connect point.- Parameters:
connectPoint- connect pointhandler- neighbour message handlerappId- application ID
-
unregisterNeighbourHandler
void unregisterNeighbourHandler(Interface intf, NeighbourMessageHandler handler, ApplicationId appId)
Unregisters a neighbour message handler that was assigned to an interface.- Parameters:
intf- interfacehandler- neighbour message handlerappId- application ID
-
unregisterNeighbourHandlers
void unregisterNeighbourHandlers(ApplicationId appId)
Unregisters all neighbour handlers that were registered by the given application.- Parameters:
appId- application ID
-
getHandlerRegistrations
Map<ConnectPoint,Collection<NeighbourHandlerRegistration>> getHandlerRegistrations()
Gets the neighbour message handlers that have been registered with the service.- Returns:
- neighbour message handlers indexed by connect point
-
-