public class MappingSystem extends Object implements IMappingSystem
| Constructor and Description |
|---|
MappingSystem(ILispDAO dao,
boolean iterateMask,
boolean notifications,
boolean overwrite) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationKey(Eid key,
MappingAuthkey authKey)
Add authentication key
|
void |
addData(MappingOrigin origin,
Eid key,
String subKey,
Object data)
Add data for key
|
void |
addMapping(MappingOrigin origin,
Eid key,
Object value)
Add mapping
|
void |
cleanCaches() |
void |
destroy() |
MappingAuthkey |
getAuthenticationKey(Eid key)
Retrieve authentication key
|
Object |
getData(MappingOrigin origin,
Eid key,
String subKey)
Generic retrieval of data
|
Object |
getMapping(Eid dst)
Retrieves mapping for the provided dst key.
|
Object |
getMapping(Eid src,
Eid dst)
Retrieves mapping for the provided src and dst key.
|
Object |
getMapping(MappingOrigin origin,
Eid key)
Retrieves mapping from table for provided key
|
void |
initialize() |
String |
printMappings()
Print all mappings.
|
void |
removeAuthenticationKey(Eid key)
Remove authentication key
|
void |
removeData(MappingOrigin origin,
Eid key,
String subKey)
Generic removal of data
|
void |
removeMapping(MappingOrigin origin,
Eid key)
Remove mapping
|
void |
setDataStoreBackEnd(DataStoreBackEnd dsbe) |
void |
setIterateMask(boolean iterate)
Sets iterateMask.
|
void |
setOverwritePolicy(boolean overwrite)
Configure overwrite policy.
|
void |
updateMappingRegistration(MappingOrigin origin,
Eid key)
Update key registration
|
public MappingSystem(ILispDAO dao, boolean iterateMask, boolean notifications, boolean overwrite)
public void setDataStoreBackEnd(DataStoreBackEnd dsbe)
public void setOverwritePolicy(boolean overwrite)
IMappingSystemsetOverwritePolicy in interface IMappingSystemoverwrite - Value to configurepublic void setIterateMask(boolean iterate)
IMappingSystemsetIterateMask in interface IMappingSystemiterate - Value to configurepublic void initialize()
public void addMapping(MappingOrigin origin, Eid key, Object value)
IMappingSystemaddMapping in interface IMappingSystemorigin - Table where mapping should be addedkey - Key of the mappingvalue - Value to be storedpublic void updateMappingRegistration(MappingOrigin origin, Eid key)
IMappingSystemupdateMappingRegistration in interface IMappingSystemorigin - Table for mapping that should be updatedkey - The key whose registration must be updatedpublic Object getMapping(Eid src, Eid dst)
IMappingSystemgetMapping in interface IMappingSystemsrc - Source Key to be looked updst - Destination Key to be looked uppublic Object getMapping(Eid dst)
IMappingSystemgetMapping in interface IMappingSystemdst - Destination Key to be looked uppublic Object getMapping(MappingOrigin origin, Eid key)
IMappingSystemgetMapping in interface IMappingSystemorigin - Table where mapping should be looked upkey - Key to be looked uppublic void removeMapping(MappingOrigin origin, Eid key)
IMappingSystemremoveMapping in interface IMappingSystemorigin - Table for mapping that should be removedkey - Key to be removedpublic void addAuthenticationKey(Eid key, MappingAuthkey authKey)
IMappingSystemaddAuthenticationKey in interface IMappingSystemkey - The key for which the authentication key is addedauthKey - The authentication keypublic MappingAuthkey getAuthenticationKey(Eid key)
IMappingSystemgetAuthenticationKey in interface IMappingSystemkey - The key for which the authentication key is being looked up.public void removeAuthenticationKey(Eid key)
IMappingSystemremoveAuthenticationKey in interface IMappingSystemkey - Key for which the authentication key should be removed.public void addData(MappingOrigin origin, Eid key, String subKey, Object data)
IMappingSystemaddData in interface IMappingSystemorigin - Table for data that should be addedkey - The key for which data is insertedsubKey - The subKey where data should be inserteddata - The data to be storedpublic Object getData(MappingOrigin origin, Eid key, String subKey)
IMappingSystemgetData in interface IMappingSystemorigin - Table from where data should be retrievedkey - The key where the data is storedsubKey - The subKey where data is storedpublic void removeData(MappingOrigin origin, Eid key, String subKey)
IMappingSystemremoveData in interface IMappingSystemorigin - Table from where data should be removedkey - The key of the data to be removedsubKey - The subKey of the data to be removedpublic void destroy()
public String printMappings()
IMappingSystemprintMappings in interface IMappingSystempublic void cleanCaches()
Copyright © 2017 OpenDaylight. All rights reserved.