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 
46 
47  private:
48 
49  friend class WorkflowExecutionEvent;
50 
56  StandardJobCompletedEvent(std::shared_ptr<StandardJob> standard_job,
57  std::shared_ptr<ComputeService> 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
std::string toString() override
Get a textual description of the event.
Definition: StandardJobCompletedEvent.h:70
A "standard job has completed" WorkflowExecutionEvent.
Definition: StandardJobCompletedEvent.h:45
Definition: Alarm.cpp:20
std::shared_ptr< StandardJob > standard_job
The standard job that has completed.
Definition: StandardJobCompletedEvent.h:62
std::shared_ptr< ComputeService > compute_service
The compute service on which the standard job has completed.
Definition: StandardJobCompletedEvent.h:64
A class to represent the various execution events that are relevant to the execution of a workflow.
Definition: WorkflowExecutionEvent.h:26