public class MultiTableMapCache extends Object implements IMapCache
Constructor and Description |
---|
MultiTableMapCache(ILispDAO dao) |
Modifier and Type | Method and Description |
---|---|
void |
addData(Eid eid,
String subKey,
Object data)
Add data for key.
|
void |
addMapping(Eid key,
Object value)
Add mapping.
|
Object |
getData(Eid eid,
String subKey)
Generic retrieval of data.
|
Object |
getMapping(Eid srcEid,
Eid dstEid)
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 MultiTableMapCache(ILispDAO dao)
public void addMapping(Eid key, Object value)
IMapCache
addMapping
in interface IMapCache
key
- Key of the mappingvalue
- Value to be storedpublic Object getMapping(Eid srcEid, Eid dstEid)
IMapCache
getMapping
in interface IMapCache
srcEid
- Source Key to be looked updstEid
- Destination Key to be looked uppublic Eid getWidestNegativeMapping(Eid key)
IMapCache
getWidestNegativeMapping
in interface IMapCache
key
- Source Key to be looked uppublic Set<Eid> getSubtree(Eid key)
IMapCache
getSubtree
in interface IMapCache
key
- Key to be looked uppublic void removeMapping(Eid eid)
IMapCache
removeMapping
in interface IMapCache
eid
- Key to be removedpublic void addData(Eid eid, String subKey, Object data)
IMapCache
public Object getData(Eid eid, String subKey)
IMapCache
public void removeData(Eid eid, String subKey)
IMapCache
removeData
in interface IMapCache
eid
- The key of the data to be removedsubKey
- The subKey of the data to be removedpublic String printMappings()
IMapCache
printMappings
in interface IMapCache
public String prettyPrintMappings()
IMapCache
prettyPrintMappings
in interface IMapCache
Copyright © 2019 OpenDaylight. All rights reserved.