public class MapServer extends Object implements IMapServerAsync, OdlMappingserviceListener, ISmrNotificationListener
Constructor and Description |
---|
MapServer(IMappingService mapService,
boolean subscriptionService,
IMapNotifyHandler notifyHandler,
org.opendaylight.controller.md.sal.binding.api.NotificationService notificationService) |
Modifier and Type | Method and Description |
---|---|
void |
handleMapRegister(MapRegister mapRegister)
Handle map-register message.
|
void |
onMappingChanged(MappingChanged notification)
Notification sent when a mapping is changed
|
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.
|
public MapServer(IMappingService mapService, boolean subscriptionService, IMapNotifyHandler notifyHandler, org.opendaylight.controller.md.sal.binding.api.NotificationService notificationService)
public void setSubscriptionService(boolean subscriptionService)
IGenericMapServer
setSubscriptionService
in interface IGenericMapServer
subscriptionService
- Set subscription servicepublic void handleMapRegister(MapRegister mapRegister)
IMapServerAsync
handleMapRegister
in interface IMapServerAsync
mapRegister
- The map-register messagepublic void onMappingChanged(MappingChanged notification)
OdlMappingserviceListener
onMappingChanged
in interface OdlMappingserviceListener
public void onSmrInvokedReceived(SmrEvent event)
ISmrNotificationListener
onSmrInvokedReceived
in interface ISmrNotificationListener
event
- This object carries the nonce of a smr-invoked request and the subscriber's IpAddressBinary
that sent this request.Copyright © 2019 OpenDaylight. All rights reserved.