public class LispMappingService extends Object implements IFlowMapping, IMapRequestResultHandler, IMapNotifyHandler, OdlLispProtoListener, AutoCloseable, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
Constructor and Description |
---|
LispMappingService(org.opendaylight.controller.md.sal.binding.api.NotificationService notificationService,
IMappingService mappingService,
OdlLispSbService odlLispService,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService) |
Modifier and Type | Method and Description |
---|---|
void |
basicInit() |
void |
close() |
com.google.common.util.concurrent.ListenableFuture<Void> |
closeServiceInstance() |
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
org.opendaylight.controller.md.sal.binding.api.NotificationService |
getNotificationService() |
void |
handleMapNotify(MapNotify notify,
List<TransportAddress> rlocs)
Handle map-notify message.
|
org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> |
handleMapRegister(MapRegister mapRegister)
Handle southbound map-request.
|
void |
handleMapReply(MapReply reply)
Handle return map-reply message.
|
MapReply |
handleMapRequest(MapRequest request)
Handle southbound map-request.
|
void |
handleNonProxyMapRequest(MapRequest mapRequest,
TransportAddress transportAddress)
Handle map-request to be forwarded to authoritative ETR.
|
void |
handleSMR(MapRequest smrMapRequest,
Rloc subscriber)
Handle Solicit Map Request message.
|
void |
initialize() |
void |
instantiateServiceInstance() |
void |
onAddMapping(AddMapping mapRegisterNotification) |
void |
onGotMapNotify(GotMapNotify notification) |
void |
onGotMapReply(GotMapReply notification) |
void |
onMappingKeepAlive(MappingKeepAlive notification) |
void |
onRequestMapping(RequestMapping mapRequestNotification) |
void |
onXtrReplyMapping(XtrReplyMapping notification) |
void |
onXtrRequestMapping(XtrRequestMapping notification) |
void |
setShouldAuthenticate(boolean shouldAuthenticate) |
void |
setShouldUseSmr(boolean shouldUseSmr)
Configure LISP mapping service to track and notify of changes mapping requesters.
|
boolean |
shouldUseSmr() |
public LispMappingService(org.opendaylight.controller.md.sal.binding.api.NotificationService notificationService, IMappingService mappingService, OdlLispSbService odlLispService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService)
public boolean shouldUseSmr()
public void setShouldUseSmr(boolean shouldUseSmr)
IFlowMapping
setShouldUseSmr
in interface IFlowMapping
shouldUseSmr
- Configure state of servicepublic org.opendaylight.controller.md.sal.binding.api.NotificationService getNotificationService()
public void initialize()
public void basicInit()
public MapReply handleMapRequest(MapRequest request)
IFlowMapping
handleMapRequest
in interface IFlowMapping
request
- The map-request messagespublic org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> handleMapRegister(MapRegister mapRegister)
IFlowMapping
handleMapRegister
in interface IFlowMapping
mapRegister
- The map-register messagepublic void setShouldAuthenticate(boolean shouldAuthenticate)
public void onAddMapping(AddMapping mapRegisterNotification)
onAddMapping
in interface OdlLispProtoListener
public void onRequestMapping(RequestMapping mapRequestNotification)
onRequestMapping
in interface OdlLispProtoListener
public void onGotMapReply(GotMapReply notification)
onGotMapReply
in interface OdlLispProtoListener
public void onGotMapNotify(GotMapNotify notification)
onGotMapNotify
in interface OdlLispProtoListener
public void onXtrRequestMapping(XtrRequestMapping notification)
onXtrRequestMapping
in interface OdlLispProtoListener
public void onXtrReplyMapping(XtrReplyMapping notification)
onXtrReplyMapping
in interface OdlLispProtoListener
public void onMappingKeepAlive(MappingKeepAlive notification)
onMappingKeepAlive
in interface OdlLispProtoListener
public void handleMapReply(MapReply reply)
IMapRequestResultHandler
handleMapReply
in interface IMapRequestResultHandler
reply
- The map-reply messagepublic void handleMapNotify(MapNotify notify, List<TransportAddress> rlocs)
IMapNotifyHandler
handleMapNotify
in interface IMapNotifyHandler
notify
- The map-notify messagerlocs
- A list of RLOCs which need to be notifiedpublic void handleSMR(MapRequest smrMapRequest, Rloc subscriber)
IMapNotifyHandler
handleSMR
in interface IMapNotifyHandler
smrMapRequest
- the SMR messagesubscriber
- The address of the subscriber that should be SMRedpublic void handleNonProxyMapRequest(MapRequest mapRequest, TransportAddress transportAddress)
IMapRequestResultHandler
handleNonProxyMapRequest
in interface IMapRequestResultHandler
mapRequest
- The map-request messagetransportAddress
- The address of the ETRpublic void close() throws Exception
close
in interface AutoCloseable
Exception
public void instantiateServiceInstance()
instantiateServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
closeServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
Copyright © 2019 OpenDaylight. All rights reserved.