WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
CompoundJobCompletedEvent.h
1 
11 #ifndef WRENCH_COMPOUND_JOB_COMPLETED_EVENT_H
12 #define WRENCH_COMPOUND_JOB_COMPLETED_EVENT_H
13 
14 #include <string>
15 #include <utility>
16 #include "ExecutionEvent.h"
17 #include "wrench/failure_causes/FailureCause.h"
18 
19 /***********************/
21 /***********************/
22 
23 namespace wrench {
24 
25  class WorkflowTask;
26 
27  class DataFile;
28 
29  class CompoundJob;
30 
31  class PilotJob;
32 
33  class ComputeService;
34 
35  class StorageService;
36 
37  class FileRegistryService;
38 
39  class FileRegistryService;
40 
41 
42 
46  class CompoundJobCompletedEvent : public ExecutionEvent {
47 
48  private:
49 
50  friend class ExecutionEvent;
51 
57  CompoundJobCompletedEvent(std::shared_ptr<CompoundJob> compound_job,
58  std::shared_ptr<ComputeService> compute_service)
59  : job(std::move(compound_job)), compute_service(std::move(compute_service)) {}
60  public:
61 
63  std::shared_ptr<CompoundJob> job;
65  std::shared_ptr<ComputeService> compute_service;
66 
71  std::string toString() override { return "CompoundJobCompletedEvent (job: " + this->job->getName() + "; cs = " + this->compute_service->getName() + ")";}
72  };
73 
74 
75 };
76 
77 /***********************/
79 /***********************/
80 
81 
82 
83 #endif //WRENCH_COMPOUND_JOB_COMPLETED_EVENT_H
wrench::toString
std::string toString() override
Return an error message that describes the failure cause (to be overridden)
Definition: ComputeThreadHasDied.cpp:29
wrench
Definition: Action.cpp:28