public interface IMapCache
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationKey(Eid key,
MappingAuthkey authKey)
Add authentication key
|
void |
addData(Eid key,
String subKey,
Object data)
Add data for key
|
void |
addMapping(Eid key,
Object data,
boolean shouldOverwrite)
Add mapping
|
MappingAuthkey |
getAuthenticationKey(Eid key)
Retrieve authentication key
|
Object |
getData(Eid key,
String subKey)
Generic retrieval of data
|
Object |
getMapping(Eid srcKey,
Eid dstKey)
Retrieves mapping for the provided srcKey and dstKey.
|
String |
printMappings()
Print mappings in cache.
|
void |
removeAuthenticationKey(Eid key)
Remove authentication key
|
void |
removeData(Eid key,
String subKey)
Generic removal of data
|
void |
removeMapping(Eid key,
boolean overwrite)
Remove mapping
|
void |
updateMappingRegistration(Eid key)
Update key registration
|
void addMapping(Eid key, Object data, boolean shouldOverwrite)
key - Key of the mappingdata - Value to be storedshouldOverwrite - Select if mappings with the same key are overwrittenObject getMapping(Eid srcKey, Eid dstKey)
srcKey - Source Key to be looked updstKey - Destination Key to be looked upvoid removeMapping(Eid key, boolean overwrite)
key - Key to be removedoverwrite - Select if mappings with the same key were overwritten on storevoid addAuthenticationKey(Eid key, MappingAuthkey authKey)
key - The key for which the authentication key is addedauthKey - The authentication keyMappingAuthkey getAuthenticationKey(Eid key)
key - The key for which the authentication key is being looked up.void removeAuthenticationKey(Eid key)
key - Key for which the authentication key should be removed.void updateMappingRegistration(Eid key)
key - The key whose registration must be updatedvoid 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()
Copyright © 2017 OpenDaylight. All rights reserved.