Class MapServer
java.lang.Object
org.opendaylight.lispflowmapping.implementation.lisp.MapServer
- All Implemented Interfaces:
AutoCloseable,IGenericMapServer,IMapServerAsync,ISmrNotificationListener,org.opendaylight.mdsal.binding.api.NotificationService.Listener<MappingChanged>
public class MapServer
extends Object
implements IMapServerAsync, ISmrNotificationListener, org.opendaylight.mdsal.binding.api.NotificationService.Listener<MappingChanged>, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionMapServer(IMappingService mapService, boolean subscriptionService, IMapNotifyHandler notifyHandler, org.opendaylight.mdsal.binding.api.NotificationService notificationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidhandleMapRegister(MapRegister mapRegister) Handle map-register message.voidonNotification(MappingChanged notification) voidonSmrInvokedReceived(SmrEvent event) This method is fired when a new smr-invoked request is received.voidsetSubscriptionService(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
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
setSubscriptionService
public void setSubscriptionService(boolean subscriptionService) Description copied from interface:IGenericMapServerConfigure Map Server to notify mapping subscribers on mapping updates.- Specified by:
setSubscriptionServicein interfaceIGenericMapServer- Parameters:
subscriptionService- Set subscription service
-
handleMapRegister
Description copied from interface:IMapServerAsyncHandle map-register message.- Specified by:
handleMapRegisterin interfaceIMapServerAsync- Parameters:
mapRegister- The map-register message
-
onNotification
- Specified by:
onNotificationin interfaceorg.opendaylight.mdsal.binding.api.NotificationService.Listener<MappingChanged>
-
onSmrInvokedReceived
Description copied from interface:ISmrNotificationListenerThis method is fired when a new smr-invoked request is received.- Specified by:
onSmrInvokedReceivedin interfaceISmrNotificationListener- Parameters:
event- This object carries the nonce of a smr-invoked request and the subscriber'sIpAddressBinarythat sent this request.
-