Class MapResolver
java.lang.Object
org.opendaylight.lispflowmapping.implementation.lisp.MapResolver
- All Implemented Interfaces:
IGenericMapResolver
,IMapResolverAsync
-
Constructor Summary
ConstructorDescriptionMapResolver
(IMappingService mapService, boolean smr, String elpPolicy, IMapRequestResultHandler requestHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMapRequest
(MapRequest request) Handle Map-Request.void
setElpPolicy
(String elpPolicy) Configure how ELPs should be returned in Map-Replies.void
setShouldAuthenticate
(boolean shouldAuthenticate) Configure MapResolver to use authentication.void
setSmrNotificationListener
(ISmrNotificationListener smrNotificationListener) Set SMR message notification listener.void
setSubscriptionService
(boolean smr) Configure MapResolver to track mappings requesters.
-
Constructor Details
-
MapResolver
public MapResolver(IMappingService mapService, boolean smr, String elpPolicy, IMapRequestResultHandler requestHandler)
-
-
Method Details
-
handleMapRequest
Description copied from interface:IMapResolverAsync
Handle Map-Request.- Specified by:
handleMapRequest
in interfaceIMapResolverAsync
- Parameters:
request
- The map-request message
-
setSubscriptionService
public void setSubscriptionService(boolean smr) Description copied from interface:IGenericMapResolver
Configure MapResolver to track mappings requesters.- Specified by:
setSubscriptionService
in interfaceIGenericMapResolver
- Parameters:
smr
- Subscription service state
-
setElpPolicy
Description copied from interface:IGenericMapResolver
Configure how ELPs should be returned in Map-Replies.- Specified by:
setElpPolicy
in interfaceIGenericMapResolver
- Parameters:
elpPolicy
- ELP policy
-
setShouldAuthenticate
public void setShouldAuthenticate(boolean shouldAuthenticate) Description copied from interface:IGenericMapResolver
Configure MapResolver to use authentication.- Specified by:
setShouldAuthenticate
in interfaceIGenericMapResolver
- Parameters:
shouldAuthenticate
- Authentication state
-
setSmrNotificationListener
Description copied from interface:IMapResolverAsync
Set SMR message notification listener.- Specified by:
setSmrNotificationListener
in interfaceIMapResolverAsync
- Parameters:
smrNotificationListener
- The SMR notification listener
-