public class MultiTableMapCache extends Object implements IMapCache
| Constructor and Description |
|---|
MultiTableMapCache(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 key,
Object value,
boolean shouldOverwrite)
Add mapping
|
MappingAuthkey |
getAuthenticationKey(Eid eid)
Retrieve authentication key
|
Object |
getData(Eid eid,
String subKey)
Generic retrieval of data
|
Object |
getMapping(Eid srcEid,
Eid dstEid)
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 key)
Update key registration
|
public MultiTableMapCache(ILispDAO dao)
public void addMapping(Eid key, Object value, boolean shouldOverwrite)
IMapCacheaddMapping in interface IMapCachekey - Key of the mappingvalue - Value to be storedshouldOverwrite - Select if mappings with the same key are overwrittenpublic Object getMapping(Eid srcEid, Eid dstEid)
IMapCachegetMapping in interface IMapCachesrcEid - Source Key to be looked updstEid - 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 String printMappings()
IMapCacheprintMappings in interface IMapCachepublic void updateMappingRegistration(Eid key)
IMapCacheupdateMappingRegistration in interface IMapCachekey - 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 removedCopyright © 2017 OpenDaylight. All rights reserved.