WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
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 "FailureCause.h"
17 #include "wrench/services/storage/StorageService.h"
18 
19 namespace wrench {
20 
21  class DataFile;
22 
23  /***********************/
25  /***********************/
26 
30  class StorageServiceNotEnoughSpace : public FailureCause {
31 
32  public:
33  /***********************/
35  /***********************/
36  StorageServiceNotEnoughSpace(std::shared_ptr<DataFile>file, std::shared_ptr<StorageService> storage_service);
37  /***********************/
39  /***********************/
40 
41  std::shared_ptr<DataFile>getFile();
42  std::shared_ptr<StorageService> getStorageService();
43  std::string toString() override;
44 
45 
46  private:
47  std::shared_ptr<DataFile>file;
48  std::shared_ptr<StorageService> storage_service;
49  };
50 
51  /***********************/
53  /***********************/
54 };
55 
56 
57 #endif //WRENCH_STORAGE_SERVICE_NOT_ENOUGH_SPACE_H
wrench::toString
std::string toString() override
Return an error message that describes the failure cause (to be overridden)
Definition: ComputeThreadHasDied.cpp:29
wrench
Definition: Action.cpp:28
wrench::getStorageService
std::shared_ptr< StorageService > getStorageService()
Get the storage service at which the path was invalid.
Definition: InvalidDirectoryPath.cpp:39