Interface ILispMapCache
- All Superinterfaces:
- IMapCache
- All Known Implementing Classes:
- SimpleMapCache
LISP southbound control protocol specific additions to the map-cache
 interface.
- Author:
- Lorand Jakab
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMapping(Eid key, Object value, Set<IpAddressBinary> sourceRlocs) Add mapping.voidaddMapping(Eid key, XtrId xtrId, Object value) Add mapping.getAllXtrIdMappings(Eid key) Retrieve all xTR-ID sub-mappings for an EID.Look up the covering prefix for the argument, but exclude the argument itself, so the result is always less specific than the lookup key.getMapping(Eid key, XtrId xtrId) Retrieves mapping for the provided srcKey, dstKey and a XtrId.getParentPrefix(Eid key) Returns the parent prefix for given key.getSiblingPrefix(Eid key) Returns the sibling prefix for given key.Returns the virtual parent sibling prefix for given key.voidremoveMapping(Eid key, XtrId xtrId) Remove mapping.voidremoveXtrIdMappings(Eid key, List<XtrId> xtrIds) Batch remove several xTR-ID sub-mappings under a certain key.Methods inherited from interface org.opendaylight.lispflowmapping.interfaces.mapcache.IMapCacheaddData, addMapping, getData, getMapping, getSubtree, getWidestNegativeMapping, prettyPrintMappings, printMappings, removeData, removeMapping
- 
Method Details- 
addMappingAdd mapping.- Parameters:
- key- Key of the mapping
- value- Mapping to be stored
- sourceRlocs- The set of RLOCs from all registrations. Used for merging
 
- 
addMappingAdd mapping.- Parameters:
- key- Key of the mapping
- xtrId- xTR-ID of the mapping
- value- Mapping to be stored
 
- 
getMappingRetrieves mapping for the provided srcKey, dstKey and a XtrId.- Parameters:
- key- Key to be looked up
- xtrId- xTR-ID for which look-up to be done
- Returns:
- Returns the mapping found in the cache
 
- 
removeMappingRemove mapping.- Parameters:
- key- Key to be removed
- xtrId- xTR-ID of the mapping to be removed
 
- 
getAllXtrIdMappingsRetrieve all xTR-ID sub-mappings for an EID. Used for merging logic.- Parameters:
- key- Key to be looked up
- Returns:
- The list of Objects which should be mappings
 
- 
removeXtrIdMappingsBatch remove several xTR-ID sub-mappings under a certain key.This is a performance optimization, since interactive calls to removeMapping() would result in LPM lookups of the key for each call. With this method, only one such lookup is performed. - Parameters:
- key- Key to be looked up
- xtrIds- List of xTR-IDs that need to be removed
 
- 
getCoveringLessSpecificLook up the covering prefix for the argument, but exclude the argument itself, so the result is always less specific than the lookup key.- Parameters:
- key- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.
- Returns:
- The covering prefix.
 
- 
getParentPrefixReturns the parent prefix for given key.- Parameters:
- key- The key for which parent is to be returned.
- Returns:
- The parent prefix of a specific key.
 
- 
getSiblingPrefixReturns the sibling prefix for given key.- Parameters:
- key- The key for which sibling is to be returned.
- Returns:
- The sibling prefix of a specific key.
 
- 
getVirtualParentSiblingPrefixReturns the virtual parent sibling prefix for given key.- Parameters:
- key- The key for which virtual parent sibling is to be returned.
- Returns:
- The virtual parent sibling prefix of a specific key.
 
 
-