Class MapServer
- java.lang.Object
-
- org.opendaylight.lispflowmapping.implementation.lisp.MapServer
-
- All Implemented Interfaces:
java.util.EventListener,IGenericMapServer,IMapServerAsync,ISmrNotificationListener,OdlMappingserviceListener,org.opendaylight.yangtools.yang.binding.NotificationListener
public class MapServer extends java.lang.Object implements IMapServerAsync, OdlMappingserviceListener, ISmrNotificationListener
-
-
Constructor Summary
Constructors Constructor Description MapServer(IMappingService mapService, boolean subscriptionService, IMapNotifyHandler notifyHandler, org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleMapRegister(MapRegister mapRegister)Handle map-register message.voidonMappingChanged(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 Detail
-
MapServer
public MapServer(IMappingService mapService, boolean subscriptionService, IMapNotifyHandler notifyHandler, org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
-
Method Detail
-
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
public void handleMapRegister(MapRegister mapRegister)
Description copied from interface:IMapServerAsyncHandle map-register message.- Specified by:
handleMapRegisterin interfaceIMapServerAsync- Parameters:
mapRegister- The map-register message
-
onMappingChanged
public void onMappingChanged(MappingChanged notification)
- Specified by:
onMappingChangedin interfaceOdlMappingserviceListener
-
onSmrInvokedReceived
public void onSmrInvokedReceived(SmrEvent event)
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.
-
-