WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
StandardJobCompletedEvent.h
1 
11 #ifndef WRENCH_STANDARD_JOB_COMPLETED_EVENT_H
12 #define WRENCH_STANDARD_JOB_COMPLETED_EVENT_H
13 
14 #include <string>
15 #include "wrench/workflow//execution_events/WorkflowExecutionEvent.h"
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 
18 /***********************/
20 /***********************/
21 
22 namespace wrench {
23 
24  class WorkflowTask;
25 
26  class WorkflowFile;
27 
28  class StandardJob;
29 
30  class PilotJob;
31 
32  class ComputeService;
33 
34  class StorageService;
35 
36  class FileRegistryService;
37 
38  class FileRegistryService;
39 
40 
41 
45  class StandardJobCompletedEvent : public WorkflowExecutionEvent {
46 
47  private:
48 
49  friend class WorkflowExecutionEvent;
50 
56  StandardJobCompletedEvent(std::shared_ptr<StandardJob> standard_job,
57  std::shared_ptr<ComputeService> compute_service)
58  : standard_job(standard_job), compute_service(compute_service) {}
59  public:
60 
62  std::shared_ptr<StandardJob> standard_job;
64  std::shared_ptr<ComputeService> compute_service;
65 
70  std::string toString() override { return "StandardJobCompletedEvent (job: " + this->standard_job->getName() + "; cs = " + this->compute_service->getName() + ")";}
71  };
72 
73 
74 };
75 
76 /***********************/
78 /***********************/
79 
80 
81 
82 #endif //WRENCH_STANDARD_JOB_COMPLETED_EVENT_H
wrench::toString
std::string toString()
Return an error message that describes the failure cause (to be overridden)
Definition: FileLocation.cpp:116
wrench
Definition: Alarm.cpp:20