WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
PilotJobStartedEvent.h
1 
11 #ifndef WRENCH_PILOT_JOB_STARTED_EVENT_H
12 #define WRENCH_PILOT_JOB_STARTED_EVENT_H
13 
14 #include <string>
15 #include "wrench/failure_causes/FailureCause.h"
16 
17 /***********************/
19 /***********************/
20 
21 namespace wrench {
22 
23  class WorkflowTask;
24 
25  class DataFile;
26 
27  class StandardJob;
28 
29  class PilotJob;
30 
31  class ComputeService;
32 
33  class StorageService;
34 
35  class FileRegistryService;
36 
37  class FileRegistryService;
38 
42  class PilotJobStartedEvent : public ExecutionEvent {
43 
44  private:
45 
46  friend class ExecutionEvent;
47 
53  PilotJobStartedEvent(std::shared_ptr<PilotJob> pilot_job,
54  std::shared_ptr<ComputeService> compute_service)
55  : pilot_job(pilot_job), compute_service(compute_service) {}
56 
57  public:
59  std::shared_ptr<PilotJob> pilot_job;
61  std::shared_ptr<ComputeService> compute_service;
62 
67  std::string toString() override { return "PilotJobStartedEvent (cs = " + this->compute_service->getName() + ")";}
68 
69  };
70 
71 };
72 
73 /***********************/
75 /***********************/
76 
77 
78 
79 #endif //WRENCH_PILOT_JOB_STARTED_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