Class MapServer
java.lang.Object
org.opendaylight.lispflowmapping.implementation.lisp.MapServer
- All Implemented Interfaces:
EventListener
,IGenericMapServer
,IMapServerAsync
,ISmrNotificationListener
,OdlMappingserviceListener
,org.opendaylight.yangtools.yang.binding.NotificationListener
public class MapServer
extends Object
implements IMapServerAsync, OdlMappingserviceListener, ISmrNotificationListener
-
Constructor Summary
ConstructorDescriptionMapServer
(IMappingService mapService, boolean subscriptionService, IMapNotifyHandler notifyHandler, org.opendaylight.mdsal.binding.api.NotificationService notificationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMapRegister
(MapRegister mapRegister) Handle map-register message.void
onMappingChanged
(MappingChanged notification) void
onSmrInvokedReceived
(SmrEvent event) This method is fired when a new smr-invoked request is received.void
setSubscriptionService
(boolean subscriptionService) Configure Map Server to notify mapping subscribers on mapping updates.
-
Constructor Details
-
MapServer
public MapServer(IMappingService mapService, boolean subscriptionService, IMapNotifyHandler notifyHandler, org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
-
Method Details
-
setSubscriptionService
public void setSubscriptionService(boolean subscriptionService) Description copied from interface:IGenericMapServer
Configure Map Server to notify mapping subscribers on mapping updates.- Specified by:
setSubscriptionService
in interfaceIGenericMapServer
- Parameters:
subscriptionService
- Set subscription service
-
handleMapRegister
Description copied from interface:IMapServerAsync
Handle map-register message.- Specified by:
handleMapRegister
in interfaceIMapServerAsync
- Parameters:
mapRegister
- The map-register message
-
onMappingChanged
- Specified by:
onMappingChanged
in interfaceOdlMappingserviceListener
-
onSmrInvokedReceived
Description copied from interface:ISmrNotificationListener
This method is fired when a new smr-invoked request is received.- Specified by:
onSmrInvokedReceived
in interfaceISmrNotificationListener
- Parameters:
event
- This object carries the nonce of a smr-invoked request and the subscriber'sIpAddressBinary
that sent this request.
-