Skip to content

Commit

Permalink
Documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Nov 30, 2017
1 parent e81f2ca commit de6e9d4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/wrench/services/file_registry/FileRegistryService.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace wrench {
class WorkflowFile;

class StorageService;

/**
* @brief A file registry service (a.k.a. replica catalog)
*/
Expand All @@ -46,16 +46,26 @@ namespace wrench {

public:


// Public Constructor
FileRegistryService(std::string hostname,
std::map<std::string, std::string> = {});

/****************************/
/** \cond DEVELOPER */
/****************************/

std::set<StorageService *> lookupEntry(WorkflowFile *file);

void addEntry(WorkflowFile *file, StorageService *storage_service);

void removeEntry(WorkflowFile *file, StorageService *storage_service);

/****************************/
/** \endcond */
/****************************/


/****************************/
/** \cond INTERNAL */
/****************************/
Expand Down Expand Up @@ -86,6 +96,7 @@ namespace wrench {
};



};


Expand Down
11 changes: 11 additions & 0 deletions test/simulation/OneTaskTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@ class ExecutionWithLocationMapTestWMS : public wrench::WMS {
throw std::runtime_error("Shouldn't be able to add nullptr entry in the File Registry Service");
}

/* Do a bogus remove entry of the file registry service */
success = true;
try {
this->simulation->getFileRegistryService()->removeEntry(nullptr, nullptr);
} catch (std::invalid_argument &e) {
success = false;
}
if (success) {
throw std::runtime_error("Shouldn't be able to remove nullptr entry in the File Registry Service");
}



// Terminate
Expand Down

0 comments on commit de6e9d4

Please sign in to comment.