WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
JobKilled.h
1 
10 #ifndef WRENCH_JOB_FILLED_H
11 #define WRENCH_JOB_FILLED_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 #include "wrench/services/compute/ComputeService.h"
18 
19 namespace wrench {
20 
21  class WorkflowJob;
22 
23  /***********************/
25  /***********************/
26 
30  class JobKilled : public FailureCause {
31  public:
32  /***********************/
34  /***********************/
35  JobKilled(std::shared_ptr<WorkflowJob> job, std::shared_ptr<ComputeService> compute_service);
36  /***********************/
38  /***********************/
39 
40  std::shared_ptr<WorkflowJob> getJob();
41  std::shared_ptr<ComputeService> getComputeService();
42  std::string toString();
43 
44  private:
45  std::shared_ptr<WorkflowJob> job;
46  std::shared_ptr<ComputeService> compute_service;
47  };
48 
49 
50  /***********************/
52  /***********************/
53 };
54 
55 
56 #endif //WRENCH_JOB_FILLED_H
wrench::JobKilled::getJob
std::shared_ptr< WorkflowJob > getJob()
Getter.
Definition: JobKilled.cpp:36
wrench::JobKilled::getComputeService
std::shared_ptr< ComputeService > getComputeService()
Getter.
Definition: JobKilled.cpp:44
wrench::JobKilled::toString
std::string toString()
Get the human-readable failure message.
Definition: JobKilled.cpp:52
wrench
Definition: Alarm.cpp:20
wrench::FailureCause
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
wrench::JobKilled
A "job has been killed" failure cause.
Definition: JobKilled.h:30
wrench::JobKilled::JobKilled
JobKilled(std::shared_ptr< WorkflowJob > job, std::shared_ptr< ComputeService > compute_service)
Constructor.
Definition: JobKilled.cpp:27