public interface ILispMapCache extends IMapCache
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(Eid key,
Object value,
Set<IpAddressBinary> sourceRlocs)
Add mapping.
|
void |
addMapping(Eid key,
XtrId xtrId,
Object value)
Add mapping.
|
List<Object> |
getAllXtrIdMappings(Eid key)
Retrieve all xTR-ID sub-mappings for an EID.
|
Eid |
getCoveringLessSpecific(Eid key)
Look up the covering prefix for the argument, but exclude the argument itself, so the result is always less
specific than the lookup key.
|
Object |
getMapping(Eid key,
XtrId xtrId)
Retrieves mapping for the provided srcKey, dstKey and a XtrId.
|
Eid |
getParentPrefix(Eid key)
Returns the parent prefix for given key.
|
Eid |
getSiblingPrefix(Eid key)
Returns the sibling prefix for given key.
|
Eid |
getVirtualParentSiblingPrefix(Eid key)
Returns the virtual parent sibling prefix for given key.
|
void |
removeMapping(Eid key,
XtrId xtrId)
Remove mapping.
|
void |
removeXtrIdMappings(Eid key,
List<XtrId> xtrIds)
Batch remove several xTR-ID sub-mappings under a certain key.
|
addData, addMapping, getData, getMapping, getSubtree, getWidestNegativeMapping, prettyPrintMappings, printMappings, removeData, removeMappingvoid addMapping(Eid key, Object value, Set<IpAddressBinary> sourceRlocs)
key - Key of the mappingvalue - Mapping to be storedsourceRlocs - The set of RLOCs from all registrations. Used for mergingvoid addMapping(Eid key, XtrId xtrId, Object value)
key - Key of the mappingxtrId - xTR-ID of the mappingvalue - Mapping to be storedObject getMapping(Eid key, XtrId xtrId)
key - Key to be looked upxtrId - xTR-ID for which look-up to be donevoid removeMapping(Eid key, XtrId xtrId)
key - Key to be removedxtrId - xTR-ID of the mapping to be removedList<Object> getAllXtrIdMappings(Eid key)
key - Key to be looked upvoid removeXtrIdMappings(Eid key, List<XtrId> xtrIds)
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.
key - Key to be looked upxtrIds - List of xTR-IDs that need to be removedEid getCoveringLessSpecific(Eid key)
key - The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.Eid getParentPrefix(Eid key)
key - The key for which parent is to be returned.Eid getSiblingPrefix(Eid key)
key - The key for which sibling is to be returned.Copyright © 2019 OpenDaylight. All rights reserved.