Package org.onosproject.net.neighbour
Interface NeighbourResolutionService
- 
 public interface NeighbourResolutionServiceProvides a means of registering logic for handling neighbour messages.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<ConnectPoint,java.util.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- 
registerNeighbourHandlervoid 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 point
- handler- neighbour message handler
- appId- application ID
 
 - 
registerNeighbourHandlervoid 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- interface
- handler- neighbour message handler
- appId- application ID
 
 - 
unregisterNeighbourHandlervoid unregisterNeighbourHandler(ConnectPoint connectPoint, NeighbourMessageHandler handler, ApplicationId appId) Unregisters a neighbour message handler that was assigned to a connect point.- Parameters:
- connectPoint- connect point
- handler- neighbour message handler
- appId- application ID
 
 - 
unregisterNeighbourHandlervoid unregisterNeighbourHandler(Interface intf, NeighbourMessageHandler handler, ApplicationId appId) Unregisters a neighbour message handler that was assigned to an interface.- Parameters:
- intf- interface
- handler- neighbour message handler
- appId- application ID
 
 - 
unregisterNeighbourHandlersvoid unregisterNeighbourHandlers(ApplicationId appId) Unregisters all neighbour handlers that were registered by the given application.- Parameters:
- appId- application ID
 
 - 
getHandlerRegistrationsjava.util.Map<ConnectPoint,java.util.Collection<NeighbourHandlerRegistration>> getHandlerRegistrations() Gets the neighbour message handlers that have been registered with the service.- Returns:
- neighbour message handlers indexed by connect point
 
 
- 
 
-