10 #ifndef WRENCH_STANDARDJOBFAILURECAUSE_H 11 #define WRENCH_STANDARDJOBFAILURECAUSE_H 44 NO_STORAGE_SERVICE_FOR_FILE,
52 FILE_ALREADY_BEING_COPIED,
54 STORAGE_NOT_ENOUGH_SPACE,
58 JOB_TYPE_NOT_SUPPORTED,
68 JOB_CANNOT_BE_TERMINATED,
70 JOB_CANNOT_BE_FORGOTTEN,
72 COMPUTE_THREAD_HAS_DIED,
74 FUNCTIONALITY_NOT_AVAILABLE,
82 explicit FailureCause(CauseType cause);
87 virtual ~FailureCause() =
default;
121 WorkflowFile *getFile();
157 FileNotFound(WorkflowFile *file, StorageService *storage_service);
162 WorkflowFile *getFile();
163 StorageService *getStorageService();
169 StorageService *storage_service;
186 WorkflowFile *getFile();
187 StorageService *getStorageService();
193 StorageService *storage_service;
234 WorkflowFile *getFile();
235 StorageService *getStorageService();
236 std::string getPartition();
241 StorageService *storage_service;
242 std::string dst_partition;
259 Service *getService();
279 WorkflowJob *getJob();
280 ComputeService *getComputeService();
285 ComputeService *compute_service;
301 Service *getService();
302 std::string getFunctionalityName();
307 std::string functionality_name;
324 WorkflowJob *getJob();
325 ComputeService *getComputeService();
330 ComputeService *compute_service;
341 JobKilled(WorkflowJob *job, ComputeService *compute_service);
346 WorkflowJob *getJob();
347 ComputeService *getComputeService();
352 ComputeService *compute_service;
385 bool whileReceiving();
388 std::string getMailbox();
393 bool while_sending =
false;
394 std::string mailbox =
"";
414 std::string hostname;
431 WorkflowJob *getJob();
451 WorkflowJob *getJob();
508 WorkflowJob *getJob();
522 #endif //WRENCH_STANDARDJOBFAILURECAUSE_H A "job cannot be forgotten" failure cause.
Definition: FailureCause.h:441
A "network error (or endpoint is down)" failure cause.
Definition: FailureCause.h:359
ErrorType
Enumerated type to describe the type of the network error.
Definition: FailureCause.h:371
A "not enough space on storage service" failure cause.
Definition: FailureCause.h:175
A "file is already there" failure cause.
Definition: FailureCause.h:223
A "service is down" failure cause.
Definition: FailureCause.h:248
A "compute service doesn't have enough cores" failure cause.
Definition: FailureCause.h:314
A "no scratch space" failure cause.
Definition: FailureCause.h:132
A "job cannot be terminated" failure cause.
Definition: FailureCause.h:421
A "file cannot be found anywhere" failure cause.
Definition: FailureCause.h:110
A "compute service does not support requested job type" failure cause.
Definition: FailureCause.h:269
A "host error" failure cause.
Definition: FailureCause.h:400
An "Unknown" failure cause (should not happen)
Definition: FailureCause.h:479
A "requested functionality is not available on that service" failure cause.
Definition: FailureCause.h:291
OperationType
Enumerated type to describe whether the network error occured while sending or receiving.
Definition: FailureCause.h:364
virtual std::string toString()=0
Return an error message that describes the failure cause (to be overridden)
CauseType getCauseType()
Retrieve the type of the failure cause.
Definition: FailureCause.cpp:32
A "file was not found" failure cause.
Definition: FailureCause.h:151
A "job has been killed" failure cause.
Definition: FailureCause.h:336
A "compute thread has died" failure cause.
Definition: FailureCause.h:461
A "job has times out" failure cause.
Definition: FailureCause.h:498
Definition: TerminalOutput.cpp:15