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 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:
      close in interface AutoCloseable
    • 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 interface IGenericMapServer
      Parameters:
      subscriptionService - Set subscription service
    • handleMapRegister

      public void handleMapRegister(MapRegister mapRegister)
      Description copied from interface: IMapServerAsync
      Handle map-register message.
      Specified by:
      handleMapRegister in interface IMapServerAsync
      Parameters:
      mapRegister - The map-register message
    • onNotification

      public void onNotification(MappingChanged notification)
      Specified by:
      onNotification in interface org.opendaylight.mdsal.binding.api.NotificationService.Listener<MappingChanged>
    • onSmrInvokedReceived

      public void onSmrInvokedReceived(SmrEvent event)
      Description copied from interface: ISmrNotificationListener
      This method is fired when a new smr-invoked request is received.
      Specified by:
      onSmrInvokedReceived in interface ISmrNotificationListener
      Parameters:
      event - This object carries the nonce of a smr-invoked request and the subscriber's IpAddressBinary that sent this request.