StorageServiceNotEnoughSpace.h
1 
10 #ifndef WRENCH_STORAGE_SERVICE_NOT_ENOUGH_SPACE_H
11 #define WRENCH_STORAGE_SERVICE_NOT_ENOUGH_SPACE_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow//failure_causes/FailureCause.h"
17 #include "wrench/services/storage/StorageService.h"
18 
19 namespace wrench {
20 
21  class WorkflowFile;
22 
23  /***********************/
25  /***********************/
26 
31 
32  public:
33  /***********************/
35  /***********************/
36  StorageServiceNotEnoughSpace(WorkflowFile *file, std::shared_ptr<StorageService> storage_service);
37  /***********************/
39  /***********************/
40 
42  std::shared_ptr<StorageService> getStorageService();
43  std::string toString();
44 
45 
46  private:
47  WorkflowFile *file;
48  std::shared_ptr<StorageService> storage_service;
49  };
50 
51  /***********************/
53  /***********************/
54 };
55 
56 
57 #endif //WRENCH_STORAGE_SERVICE_NOT_ENOUGH_SPACE_H
A "not enough space on storage service" failure cause.
Definition: StorageServiceNotEnoughSpace.h:30
std::string toString()
Get the human-readable failure message.
Definition: StorageServiceNotEnoughSpace.cpp:54
std::shared_ptr< StorageService > getStorageService()
Getter.
Definition: StorageServiceNotEnoughSpace.cpp:46
StorageServiceNotEnoughSpace(WorkflowFile *file, std::shared_ptr< StorageService > storage_service)
Constructor.
Definition: StorageServiceNotEnoughSpace.cpp:28
Definition: Alarm.cpp:20
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
WorkflowFile * getFile()
Getter.
Definition: StorageServiceNotEnoughSpace.cpp:38
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26