WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
NotEnoughResources.h
1 
10 #ifndef WRENCH_NOT_ENOUGH_RESOURCES_H
11 #define WRENCH_NOT_ENOUGH_RESOURCES_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 
27 
31  class NotEnoughResources : public FailureCause {
32  public:
33  /***********************/
35  /***********************/
36  NotEnoughResources(std::shared_ptr<WorkflowJob> job, std::shared_ptr<ComputeService> compute_service);
37  /***********************/
39  /***********************/
40 
41  std::shared_ptr<WorkflowJob> getJob();
42  std::shared_ptr<ComputeService> getComputeService();
43  std::string toString();
44 
45  private:
46  std::shared_ptr<WorkflowJob> job;
47  std::shared_ptr<ComputeService> compute_service;
48  };
49 
50 
51  /***********************/
53  /***********************/
54 };
55 
56 
57 #endif //WRENCH_NOT_ENOUGH_RESOURCES_H
wrench::toString
std::string toString()
Return an error message that describes the failure cause (to be overridden)
Definition: FileLocation.cpp:116
wrench::getComputeService
std::shared_ptr< ComputeService > getComputeService()
Getter.
Definition: JobKilled.cpp:44
wrench::getJob
std::shared_ptr< WorkflowJob > getJob()
Get the executor's job.
Definition: StandardJobExecutor.cpp:990
wrench
Definition: Alarm.cpp:20