Class LispMappingService
java.lang.Object
org.opendaylight.lispflowmapping.implementation.LispMappingService
- All Implemented Interfaces:
AutoCloseable
,IFlowMapping
,IMapNotifyHandler
,IMapRequestResultHandler
,org.opendaylight.mdsal.singleton.api.ClusterSingletonService
,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
@Singleton
public class LispMappingService
extends Object
implements IFlowMapping, IMapRequestResultHandler, IMapNotifyHandler, AutoCloseable, org.opendaylight.mdsal.singleton.api.ClusterSingletonService
-
Constructor Summary
ConstructorDescriptionLispMappingService
(IMappingService mappingService, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider clusterSingletonService, org.opendaylight.mdsal.binding.api.RpcService rpcService, org.opendaylight.mdsal.binding.api.NotificationService notificationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture<Void>
org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier
org.opendaylight.mdsal.binding.api.NotificationService
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.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
void
setShouldAuthenticate
(boolean shouldAuthenticate) void
setShouldUseSmr
(boolean shouldUseSmr) Configure LISP mapping service to track and notify of changes mapping requesters.boolean
-
Constructor Details
-
LispMappingService
@Inject public LispMappingService(IMappingService mappingService, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider clusterSingletonService, org.opendaylight.mdsal.binding.api.RpcService rpcService, org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
-
Method Details
-
shouldUseSmr
public boolean shouldUseSmr() -
setShouldUseSmr
public void setShouldUseSmr(boolean shouldUseSmr) Description copied from interface:IFlowMapping
Configure LISP mapping service to track and notify of changes mapping requesters.- Specified by:
setShouldUseSmr
in interfaceIFlowMapping
- Parameters:
shouldUseSmr
- Configure state of service
-
getNotificationService
public org.opendaylight.mdsal.binding.api.NotificationService getNotificationService() -
handleMapRequest
Description copied from interface:IFlowMapping
Handle southbound map-request.- Specified by:
handleMapRequest
in interfaceIFlowMapping
- Parameters:
request
- The map-request messages- Returns:
- a map-reply messages
-
handleMapRegister
public org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> handleMapRegister(MapRegister mapRegister) Description copied from interface:IFlowMapping
Handle southbound map-request.- Specified by:
handleMapRegister
in interfaceIFlowMapping
- Parameters:
mapRegister
- The map-register message- Returns:
- a map-notify message, if requested in the map-register or null otherwise
-
setShouldAuthenticate
public void setShouldAuthenticate(boolean shouldAuthenticate) -
handleMapReply
Description copied from interface:IMapRequestResultHandler
Handle return map-reply message.- Specified by:
handleMapReply
in interfaceIMapRequestResultHandler
- Parameters:
reply
- The map-reply message
-
handleMapNotify
Description copied from interface:IMapNotifyHandler
Handle map-notify message.- Specified by:
handleMapNotify
in interfaceIMapNotifyHandler
- Parameters:
notify
- The map-notify messagerlocs
- A list of RLOCs which need to be notified
-
handleSMR
Description copied from interface:IMapNotifyHandler
Handle Solicit Map Request message.- Specified by:
handleSMR
in interfaceIMapNotifyHandler
- Parameters:
smrMapRequest
- the SMR messagesubscriber
- The address of the subscriber that should be SMRed
-
handleNonProxyMapRequest
Description copied from interface:IMapRequestResultHandler
Handle map-request to be forwarded to authoritative ETR.- Specified by:
handleNonProxyMapRequest
in interfaceIMapRequestResultHandler
- Parameters:
mapRequest
- The map-request messagetransportAddress
- The address of the ETR
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
instantiateServiceInstance
public void instantiateServiceInstance()- Specified by:
instantiateServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.api.ClusterSingletonService
-
closeServiceInstance
- Specified by:
closeServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.api.ClusterSingletonService
-
getIdentifier
public org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier getIdentifier()- Specified by:
getIdentifier
in interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
-