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 void
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 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:IGenericMapServer
Configure Map Server to notify mapping subscribers on mapping updates.- Specified by:
setSubscriptionService
in interfaceIGenericMapServer
- Parameters:
subscriptionService
- Set subscription service
-
handleMapRegister
public void handleMapRegister(MapRegister mapRegister)
Description copied from interface:IMapServerAsync
Handle map-register message.- Specified by:
handleMapRegister
in interfaceIMapServerAsync
- Parameters:
mapRegister
- The map-register message
-
onMappingChanged
public void onMappingChanged(MappingChanged notification)
- Specified by:
onMappingChanged
in interfaceOdlMappingserviceListener
-
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 interfaceISmrNotificationListener
- Parameters:
event
- This object carries the nonce of a smr-invoked request and the subscriber'sIpAddressBinary
that sent this request.
-
-