next up previous contents
Next: Data replication Up: The DAGDA API Previous: Data checkpointing with DAGDA   Contents

Create data ID aliases

For many applications using large sets of data shared by several users, to use an automatically generated ID to retrieve a data is difficult or even impossible. DAGDA allows the user to define data aliases, using human readable and expressive strings to retrieve a data ID. Two functions are defined to do it:
-
dagda_data_alias(const char* id, const char* alias):
Tries to associate ``alias'' to ``id''. If the alias is already defined, returns a non zero value. A data can have several aliases but an alias is always associated to only one data.
-
dagda_id_from_alias(const char* alias, char** id):
This function tries to retrieve the data id associated to the alias.



The DIET Team - Ven 18 nov 2011 18:13:39 PST