JobTypeNotSupported.h
1 
10 #ifndef WRENCH_JOB_TYPE_NOT_SUPPORTED_H
11 #define WRENCH_JOB_TYPE_NOT_SUPPORTED_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 
31  public:
32  /***********************/
34  /***********************/
35  JobTypeNotSupported(WorkflowJob *job, std::shared_ptr<ComputeService> compute_service);
36  /***********************/
38  /***********************/
39 
41  std::shared_ptr<ComputeService> getComputeService();
42  std::string toString();
43 
44  private:
45  WorkflowJob *job;
46  std::shared_ptr<ComputeService> compute_service;
47  };
48 
49 
50  /***********************/
52  /***********************/
53 };
54 
55 
56 #endif //WRENCH_JOB_TYPE_NOT_SUPPORTED_H
A "compute service does not support requested job type" failure cause.
Definition: JobTypeNotSupported.h:30
std::string toString()
Get the human-readable failure message.
Definition: JobTypeNotSupported.cpp:55
std::shared_ptr< ComputeService > getComputeService()
Getter.
Definition: JobTypeNotSupported.cpp:47
Definition: Alarm.cpp:20
WorkflowJob * getJob()
Getter.
Definition: JobTypeNotSupported.cpp:39
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
JobTypeNotSupported(WorkflowJob *job, std::shared_ptr< ComputeService > compute_service)
Constructor.
Definition: JobTypeNotSupported.cpp:30