| Constructor and Description |
|---|
FlatMapCache(ILispDAO dao) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(Eid eid,
String subKey,
Object value)
Add data for key.
|
void |
addMapping(Eid eid,
Object value)
Add mapping.
|
Object |
getData(Eid eid,
String subKey)
Generic retrieval of data.
|
Object |
getMapping(Eid srcKey,
Eid dstKey)
Retrieves mapping for the provided srcKey and dstKey.
|
Set<Eid> |
getSubtree(Eid key)
Retrieves the subtree of a prefix.
|
Eid |
getWidestNegativeMapping(Eid key)
Retrieves widest negative prefix.
|
String |
prettyPrintMappings()
Print mappings in cache in a human friendly format.
|
String |
printMappings()
Print mappings in cache.
|
void |
removeData(Eid eid,
String subKey)
Generic removal of data.
|
void |
removeMapping(Eid eid)
Remove mapping.
|
public FlatMapCache(ILispDAO dao)
public void addMapping(Eid eid, Object value)
IMapCacheaddMapping in interface IMapCacheeid - Key of the mappingvalue - Value to be storedpublic Object getMapping(Eid srcKey, Eid dstKey)
IMapCachegetMapping in interface IMapCachesrcKey - Source Key to be looked updstKey - Destination Key to be looked uppublic Eid getWidestNegativeMapping(Eid key)
IMapCachegetWidestNegativeMapping in interface IMapCachekey - Source Key to be looked uppublic Set<Eid> getSubtree(Eid key)
IMapCachegetSubtree in interface IMapCachekey - Key to be looked uppublic void removeMapping(Eid eid)
IMapCacheremoveMapping in interface IMapCacheeid - Key to be removedpublic void addData(Eid eid, String subKey, Object value)
IMapCachepublic Object getData(Eid eid, String subKey)
IMapCachepublic void removeData(Eid eid, String subKey)
IMapCacheremoveData in interface IMapCacheeid - The key of the data to be removedsubKey - The subKey of the data to be removedpublic String printMappings()
IMapCacheprintMappings in interface IMapCachepublic String prettyPrintMappings()
IMapCacheprettyPrintMappings in interface IMapCacheCopyright © 2019 OpenDaylight. All rights reserved.