| Constructor and Description |
|---|
FlatMapCache(ILispDAO dao) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationKey(Eid eid,
MappingAuthkey authKey)
Add authentication key
|
void |
addData(Eid eid,
String subKey,
Object data)
Add data for key
|
void |
addMapping(Eid eid,
Object data,
boolean shouldOverwrite)
Add mapping
|
MappingAuthkey |
getAuthenticationKey(Eid eid)
Retrieve authentication key
|
Object |
getData(Eid eid,
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 eid)
Remove authentication key
|
void |
removeData(Eid eid,
String subKey)
Generic removal of data
|
void |
removeMapping(Eid eid,
boolean overwrite)
Remove mapping
|
void |
updateMappingRegistration(Eid eid)
Update key registration
|
public FlatMapCache(ILispDAO dao)
public void addMapping(Eid eid, Object data, boolean shouldOverwrite)
IMapCacheaddMapping in interface IMapCacheeid - Key of the mappingdata - Value to be storedshouldOverwrite - Select if mappings with the same key are overwrittenpublic Object getMapping(Eid srcKey, Eid dstKey)
IMapCachegetMapping in interface IMapCachesrcKey - Source Key to be looked updstKey - Destination Key to be looked uppublic void removeMapping(Eid eid, boolean overwrite)
IMapCacheremoveMapping in interface IMapCacheeid - Key to be removedoverwrite - Select if mappings with the same key were overwritten on storepublic void addAuthenticationKey(Eid eid, MappingAuthkey authKey)
IMapCacheaddAuthenticationKey in interface IMapCacheeid - The key for which the authentication key is addedauthKey - The authentication keypublic MappingAuthkey getAuthenticationKey(Eid eid)
IMapCachegetAuthenticationKey in interface IMapCacheeid - The key for which the authentication key is being looked up.public void removeAuthenticationKey(Eid eid)
IMapCacheremoveAuthenticationKey in interface IMapCacheeid - Key for which the authentication key should be removed.public void updateMappingRegistration(Eid eid)
IMapCacheupdateMappingRegistration in interface IMapCacheeid - The key whose registration must be updatedpublic void addData(Eid eid, String subKey, Object data)
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 IMapCacheCopyright © 2017 OpenDaylight. All rights reserved.