Class MultiTableMapCache
java.lang.Object
org.opendaylight.lispflowmapping.mapcache.MultiTableMapCache
- All Implemented Interfaces:
 IMapCache
Multi table map-cache that works with 'simple' and SourceDest LCAF addresses (see lisp-proto.yang). It can do longest
 prefix matching for IP and SourceDest LCAF addresses. In case of the latter, it uses two tables, one for dst and
 another for source, queried and populated in this exact order.
- Author:
 - Florin Coras
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd data for key.voidaddMapping(Eid key, Object value) Add mapping.Generic retrieval of data.getMapping(Eid srcEid, Eid dstEid) Retrieves mapping for the provided srcKey and dstKey.getSubtree(Eid key) Retrieves the subtree of a prefix.Retrieves widest negative prefix.Print mappings in cache in a human friendly format.Print mappings in cache.voidremoveData(Eid eid, String subKey) Generic removal of data.voidremoveMapping(Eid eid) Remove mapping. 
- 
Constructor Details
- 
MultiTableMapCache
 
 - 
 - 
Method Details
- 
addMapping
Description copied from interface:IMapCacheAdd mapping.- Specified by:
 addMappingin interfaceIMapCache- Parameters:
 key- Key of the mappingvalue- Value to be stored
 - 
getMapping
Description copied from interface:IMapCacheRetrieves mapping for the provided srcKey and dstKey.- Specified by:
 getMappingin interfaceIMapCache- Parameters:
 srcEid- Source Key to be looked updstEid- Destination Key to be looked up- Returns:
 - Returns the object found in the cache or null if nothing is found.
 
 - 
getWidestNegativeMapping
Description copied from interface:IMapCacheRetrieves widest negative prefix.- Specified by:
 getWidestNegativeMappingin interfaceIMapCache- Parameters:
 key- Source Key to be looked up- Returns:
 - Returns the widest negative prefix or null if nothing is found.
 
 - 
getSubtree
Description copied from interface:IMapCacheRetrieves the subtree of a prefix.- Specified by:
 getSubtreein interfaceIMapCache- Parameters:
 key- Key to be looked up- Returns:
 - The set of prefixes in the subtree for the prefix
 
 - 
removeMapping
Description copied from interface:IMapCacheRemove mapping.- Specified by:
 removeMappingin interfaceIMapCache- Parameters:
 eid- Key to be removed
 - 
addData
Description copied from interface:IMapCacheAdd data for key. - 
getData
Description copied from interface:IMapCacheGeneric retrieval of data. - 
removeData
Description copied from interface:IMapCacheGeneric removal of data.- Specified by:
 removeDatain interfaceIMapCache- Parameters:
 eid- The key of the data to be removedsubKey- The subKey of the data to be removed
 - 
printMappings
Description copied from interface:IMapCachePrint mappings in cache. Used for testing, debugging and the karaf shell.- Specified by:
 printMappingsin interfaceIMapCache- Returns:
 - a String consisting of all the mappings in the cache
 
 - 
prettyPrintMappings
Description copied from interface:IMapCachePrint mappings in cache in a human friendly format.- Specified by:
 prettyPrintMappingsin interfaceIMapCache- Returns:
 - a String consisting of all the mappings in the cache
 
 
 -