WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
StandardJobFailedEvent.h
1 
11 #ifndef WRENCH_STANDARD_JOB_FAILED_H
12 #define WRENCH_STANDARD_JOB_FAILED_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 
43 
44  private:
45 
46  friend class ExecutionEvent;
47 
54  StandardJobFailedEvent(std::shared_ptr<StandardJob> standard_job,
55  std::shared_ptr<ComputeService> compute_service,
56  std::shared_ptr<FailureCause> failure_cause)
60 
61  public:
62 
64  std::shared_ptr<StandardJob> standard_job;
66  std::shared_ptr<ComputeService> compute_service;
68  std::shared_ptr<FailureCause> failure_cause;
69 
74  std::string toString() override { return "StandardJobFailedEvent (job: " + this->standard_job->getName() + "; cs = " +
75  this->compute_service->getName() + "; cause: " + this->failure_cause->toString() + ")";}
76 
77  };
78 
79 
80 };
81 
82 /***********************/
84 /***********************/
85 
86 
87 
88 #endif //WRENCH_STANDARD_JOB_FAILED_H
wrench::StandardJobFailedEvent::failure_cause
std::shared_ptr< FailureCause > failure_cause
The cause of the failure.
Definition: StandardJobFailedEvent.h:68
wrench
Definition: Action.cpp:28
wrench::StandardJobFailedEvent::standard_job
std::shared_ptr< StandardJob > standard_job
The standard job that has failed.
Definition: StandardJobFailedEvent.h:64
wrench::ExecutionEvent
A class to represent the various execution events that are relevant to the execution of a workflow.
Definition: ExecutionEvent.h:26
wrench::StandardJobFailedEvent::toString
std::string toString() override
Get a textual description of the event.
Definition: StandardJobFailedEvent.h:74
wrench::StandardJobFailedEvent::compute_service
std::shared_ptr< ComputeService > compute_service
The compute service on which the job has failed.
Definition: StandardJobFailedEvent.h:66
wrench::StandardJobFailedEvent
A "standard job has failed" ExecutionEvent.
Definition: StandardJobFailedEvent.h:42