10 #ifndef WRENCH_STANDARDJOBFAILURECAUSE_H 11 #define WRENCH_STANDARDJOBFAILURECAUSE_H 17 #include "wrench/services/Service.h" 18 #include "wrench/services/storage/StorageService.h" 19 #include "wrench/services/compute/ComputeService.h" 42 FailureCause() =
default;
47 virtual ~FailureCause() =
default;
91 FileNotFound(WorkflowFile *file, std::shared_ptr<FileLocation> location);
96 WorkflowFile *getFile();
97 std::shared_ptr<FileLocation> getLocation();
103 std::shared_ptr<FileLocation> location;
120 WorkflowFile *getFile();
121 std::shared_ptr<StorageService> getStorageService();
127 std::shared_ptr<StorageService> storage_service;
164 std::shared_ptr<StorageService> storage_service,
165 std::string invalid_path);
170 std::shared_ptr<StorageService> getStorageService();
171 std::string getInvalidPath();
176 std::shared_ptr<StorageService> storage_service;
177 std::string invalid_path;
194 std::shared_ptr<FileLocation> src,
195 std::shared_ptr<FileLocation> dst);
200 WorkflowFile *getFile();
201 std::shared_ptr<FileLocation> getSourceLocation();
202 std::shared_ptr<FileLocation> getDestinationLocation();
207 std::shared_ptr<FileLocation> src_location;
208 std::shared_ptr<FileLocation> dst_location;
224 std::shared_ptr<Service> getService();
228 std::shared_ptr<Service> service;
244 std::shared_ptr<Service> getService();
248 std::shared_ptr<Service> service;
264 WorkflowJob *getJob();
265 std::shared_ptr<ComputeService> getComputeService();
270 std::shared_ptr<ComputeService> compute_service;
286 std::shared_ptr<Service> getService();
287 std::string getFunctionalityName();
291 std::shared_ptr<Service> service;
292 std::string functionality_name;
304 NotEnoughResources(WorkflowJob *job, std::shared_ptr<ComputeService> compute_service);
309 WorkflowJob *getJob();
310 std::shared_ptr<ComputeService> getComputeService();
315 std::shared_ptr<ComputeService> compute_service;
326 JobKilled(WorkflowJob *job, std::shared_ptr<ComputeService> compute_service);
331 WorkflowJob *getJob();
332 std::shared_ptr<ComputeService> getComputeService();
337 std::shared_ptr<ComputeService> compute_service;
370 bool whileReceiving();
373 std::string getMailbox();
378 bool while_sending =
false;
379 std::string mailbox =
"";
400 std::string hostname;
454 WorkflowJob *getJob();
469 NotAllowed(std::shared_ptr<Service> service, std::string &error_message);
474 std::shared_ptr<Service> getService();
478 std::shared_ptr<Service> service;
479 std::string error_message;
490 #endif //WRENCH_STANDARDJOBFAILURECAUSE_H A "network error (or endpoint is down)" failure cause.
Definition: FailureCause.h:344
ErrorType
Enumerated type to describe the type of the network error.
Definition: FailureCause.h:356
A "not enough space on storage service" failure cause.
Definition: FailureCause.h:109
A "file is already being copied" failure cause.
Definition: FailureCause.h:186
A "service is down" failure cause.
Definition: FailureCause.h:214
A "service is suspended" failure cause.
Definition: FailureCause.h:234
A "compute service doesn't have enough cores" failure cause.
Definition: FailureCause.h:299
A "no scratch space" failure cause.
Definition: FailureCause.h:66
A "operation not allowed" failure cause.
Definition: FailureCause.h:464
A "compute service does not support requested job type" failure cause.
Definition: FailureCause.h:254
A "host error" failure cause (e.g., attempted to start a daemon on a host that is off) ...
Definition: FailureCause.h:385
An "Unknown" failure cause (should not happen)
Definition: FailureCause.h:425
A "requested functionality is not available on that service" failure cause.
Definition: FailureCause.h:276
OperationType
Enumerated type to describe whether the network error occured while sending or receiving.
Definition: FailureCause.h:349
A "file is already there" failure cause.
Definition: FailureCause.h:157
virtual std::string toString()=0
Return an error message that describes the failure cause (to be overridden)
A "file was not found" failure cause.
Definition: FailureCause.h:85
A "job has been killed" failure cause.
Definition: FailureCause.h:321
A "compute thread has died" failure cause.
Definition: FailureCause.h:407
A "job has times out" failure cause.
Definition: FailureCause.h:444