Class MapResolver
- java.lang.Object
-
- org.opendaylight.lispflowmapping.implementation.lisp.MapResolver
-
- All Implemented Interfaces:
IGenericMapResolver
,IMapResolverAsync
public class MapResolver extends java.lang.Object implements IMapResolverAsync
-
-
Constructor Summary
Constructors Constructor Description MapResolver(IMappingService mapService, boolean smr, java.lang.String elpPolicy, IMapRequestResultHandler requestHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleMapRequest(MapRequest request)
Handle Map-Request.void
setElpPolicy(java.lang.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 Detail
-
MapResolver
public MapResolver(IMappingService mapService, boolean smr, java.lang.String elpPolicy, IMapRequestResultHandler requestHandler)
-
-
Method Detail
-
handleMapRequest
public void handleMapRequest(MapRequest request)
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
public void setElpPolicy(java.lang.String elpPolicy)
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
public void setSmrNotificationListener(ISmrNotificationListener smrNotificationListener)
Description copied from interface:IMapResolverAsync
Set SMR message notification listener.- Specified by:
setSmrNotificationListener
in interfaceIMapResolverAsync
- Parameters:
smrNotificationListener
- The SMR notification listener
-
-