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)
IFlowMappingsetShouldUseSmr in interface IFlowMappingshouldUseSmr - Configure state of servicepublic org.opendaylight.controller.md.sal.binding.api.NotificationService getNotificationService()
public void initialize()
public void basicInit()
public MapReply handleMapRequest(MapRequest request)
IFlowMappinghandleMapRequest in interface IFlowMappingrequest - The map-request messagespublic org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> handleMapRegister(MapRegister mapRegister)
IFlowMappinghandleMapRegister in interface IFlowMappingmapRegister - The map-register messagepublic void setShouldAuthenticate(boolean shouldAuthenticate)
public void onAddMapping(AddMapping mapRegisterNotification)
onAddMapping in interface OdlLispProtoListenerpublic void onRequestMapping(RequestMapping mapRequestNotification)
onRequestMapping in interface OdlLispProtoListenerpublic void onGotMapReply(GotMapReply notification)
onGotMapReply in interface OdlLispProtoListenerpublic void onGotMapNotify(GotMapNotify notification)
onGotMapNotify in interface OdlLispProtoListenerpublic void onXtrRequestMapping(XtrRequestMapping notification)
onXtrRequestMapping in interface OdlLispProtoListenerpublic void onXtrReplyMapping(XtrReplyMapping notification)
onXtrReplyMapping in interface OdlLispProtoListenerpublic void onMappingKeepAlive(MappingKeepAlive notification)
onMappingKeepAlive in interface OdlLispProtoListenerpublic void handleMapReply(MapReply reply)
IMapRequestResultHandlerhandleMapReply in interface IMapRequestResultHandlerreply - The map-reply messagepublic void handleMapNotify(MapNotify notify, List<TransportAddress> rlocs)
IMapNotifyHandlerhandleMapNotify in interface IMapNotifyHandlernotify - The map-notify messagerlocs - A list of RLOCs which need to be notifiedpublic void handleSMR(MapRequest smrMapRequest, Rloc subscriber)
IMapNotifyHandlerhandleSMR in interface IMapNotifyHandlersmrMapRequest - the SMR messagesubscriber - The address of the subscriber that should be SMRedpublic void handleNonProxyMapRequest(MapRequest mapRequest, TransportAddress transportAddress)
IMapRequestResultHandlerhandleNonProxyMapRequest in interface IMapRequestResultHandlermapRequest - The map-request messagetransportAddress - The address of the ETRpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic void instantiateServiceInstance()
instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic 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.