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" 97 std::shared_ptr<FileLocation> getLocation();
103 std::shared_ptr<FileLocation> location;
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);
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;
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;
310 std::shared_ptr<ComputeService> getComputeService();
315 std::shared_ptr<ComputeService> compute_service;
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;
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 "file is already being copied" failure cause.
Definition: FailureCause.h:186
A "service is suspended" failure cause.
Definition: FailureCause.h:234
A "job has times out" failure cause.
Definition: FailureCause.h:444
A "file was not found" failure cause.
Definition: FailureCause.h:85
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:38
A "compute service does not support requested job type" failure cause.
Definition: FailureCause.h:254
Abstraction of a job used for executing tasks in a Workflow.
Definition: WorkflowJob.h:34
A "no scratch space" failure cause.
Definition: FailureCause.h:66
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26
A "operation not allowed" failure cause.
Definition: FailureCause.h:464
A class that encodes a file location.
Definition: FileLocation.h:28
ErrorType
Enumerated type to describe the type of the network error.
Definition: FailureCause.h:356
A "service is down" failure cause.
Definition: FailureCause.h:214
A "job has been killed" failure cause.
Definition: FailureCause.h:321
A "network error (or endpoint is down)" failure cause.
Definition: FailureCause.h:344
A "compute thread has died" failure cause.
Definition: FailureCause.h:407
An "Unknown" failure cause (should not happen)
Definition: FailureCause.h:425
A "file is already there" failure cause.
Definition: FailureCause.h:157
A "requested functionality is not available on that service" failure cause.
Definition: FailureCause.h:276
A "host error" failure cause (e.g., attempted to start a daemon on a host that is off) ...
Definition: FailureCause.h:385
virtual std::string toString()=0
Return an error message that describes the failure cause (to be overridden)
A "not enough space on storage service" failure cause.
Definition: FailureCause.h:109
OperationType
Enumerated type to describe whether the network error occured while sending or receiving.
Definition: FailureCause.h:349
A "compute service doesn't have enough cores" failure cause.
Definition: FailureCause.h:299