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 
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::CompoundJobCompletedEvent::job
std::shared_ptr< CompoundJob > job
The compound job that has completed.
Definition: CompoundJobCompletedEvent.h:63
wrench
Definition: Action.cpp:28
wrench::ExecutionEvent
A class to represent the various execution events that are relevant to the execution of a workflow.
Definition: ExecutionEvent.h:26
wrench::CompoundJobCompletedEvent::compute_service
std::shared_ptr< ComputeService > compute_service
The compute service on which the compound job has completed.
Definition: CompoundJobCompletedEvent.h:65
wrench::CompoundJobCompletedEvent
A "compound job has completed" ExecutionEvent.
Definition: CompoundJobCompletedEvent.h:46
wrench::CompoundJobCompletedEvent::toString
std::string toString() override
Get a textual description of the event.
Definition: CompoundJobCompletedEvent.h:71