public interface IMapCache
Modifier and Type | Method and Description |
---|---|
void |
addData(Eid key,
String subKey,
Object data)
Add data for key.
|
void |
addMapping(Eid key,
Object value)
Add mapping.
|
Object |
getData(Eid key,
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 key,
String subKey)
Generic removal of data.
|
void |
removeMapping(Eid key)
Remove mapping.
|
void addMapping(Eid key, Object value)
key
- Key of the mappingvalue
- Value to be storedObject getMapping(Eid srcKey, Eid dstKey)
srcKey
- Source Key to be looked updstKey
- Destination Key to be looked upEid getWidestNegativeMapping(Eid key)
key
- Source Key to be looked upSet<Eid> getSubtree(Eid key)
key
- Key to be looked upvoid removeMapping(Eid key)
key
- Key to be removedvoid addData(Eid key, String subKey, Object data)
key
- The key for which data is insertedsubKey
- The subKey where data should be inserteddata
- The data to be storedObject getData(Eid key, String subKey)
key
- The key where the data is storedsubKey
- The subKey where data is storedvoid removeData(Eid key, String subKey)
key
- The key of the data to be removedsubKey
- The subKey of the data to be removedString printMappings()
String prettyPrintMappings()
Copyright © 2019 OpenDaylight. All rights reserved.