JobTimeout.h
1 
10 #ifndef WRENCH_JOB_TIMEOUT_H
11 #define WRENCH_JOB_TIMEOUT_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 
18 namespace wrench {
19 
20  class WorkflowJob;
21 
22  /***********************/
24  /***********************/
25 
29  class JobTimeout : public FailureCause {
30  public:
31  /***********************/
33  /***********************/
34  JobTimeout(WorkflowJob *job);
35  /***********************/
37  /***********************/
38 
40  std::string toString();
41 
42  private:
43  WorkflowJob *job;
44  };
45 
46 
47  /***********************/
49  /***********************/
50 };
51 
52 
53 #endif //WRENCH_JOB_TIMEOUT_H
std::string toString()
Get the human-readable failure message.
Definition: JobTimeout.cpp:41
A "job has timed out" failure cause.
Definition: JobTimeout.h:29
Definition: Alarm.cpp:20
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
Abstraction of a job used for executing tasks in a Workflow.
Definition: WorkflowJob.h:34
WorkflowJob * getJob()
Getter.
Definition: JobTimeout.cpp:33