WRENCH  1.11
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 <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 StandardJob;
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  StandardJobCompletedEvent(std::shared_ptr<StandardJob> standard_job,
58  std::shared_ptr<ComputeService> compute_service)
60  public:
61 
63  std::shared_ptr<StandardJob> standard_job;
65  std::shared_ptr<ComputeService> compute_service;
66 
71  std::string toString() override { return "StandardJobCompletedEvent (job: " + this->standard_job->getName() + "; cs = " + this->compute_service->getName() + ")";}
72  };
73 
74 
75 };
76 
77 /***********************/
79 /***********************/
80 
81 
82 
83 #endif //WRENCH_STANDARD_JOB_COMPLETED_EVENT_H
wrench::StandardJobCompletedEvent::toString
std::string toString() override
Get a textual description of the event.
Definition: StandardJobCompletedEvent.h:71
wrench::StandardJobCompletedEvent
A "standard job has completed" ExecutionEvent.
Definition: StandardJobCompletedEvent.h:46
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::StandardJobCompletedEvent::standard_job
std::shared_ptr< StandardJob > standard_job
The standard job that has completed.
Definition: StandardJobCompletedEvent.h:63
wrench::StandardJobCompletedEvent::compute_service
std::shared_ptr< ComputeService > compute_service
The compute service on which the standard job has completed.
Definition: StandardJobCompletedEvent.h:65