WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
CompoundJobFailedEvent.h
1 
11 #ifndef WRENCH_COMPOUND_JOB_FAILED_H
12 #define WRENCH_COMPOUND_JOB_FAILED_H
13 
14 #include <string>
15 #include <utility>
16 #include "wrench/failure_causes/FailureCause.h"
17 #include "wrench/job/CompoundJob.h"
18 
19 /***********************/
21 /***********************/
22 
23 namespace wrench {
24 
25  class WorkflowTask;
26  class DataFile;
27  class CompoundJob;
28  class PilotJob;
29  class ComputeService;
30  class StorageService;
31  class FileRegistryService;
32  class FileRegistryService;
33 
38 
39  private:
40 
41  friend class ExecutionEvent;
42 
48  CompoundJobFailedEvent(std::shared_ptr<CompoundJob> job,
49  std::shared_ptr<ComputeService> compute_service,
50  std::shared_ptr<FailureCause> failure_cause)
51  : job(std::move(job)),
52  compute_service(std::move(compute_service)),
53  failure_cause(std::move(failure_cause)) {}
54 
55  public:
56 
58  std::shared_ptr<CompoundJob> job;
60  std::shared_ptr<ComputeService> compute_service;
62  std::shared_ptr<FailureCause> failure_cause;
63 
68  std::string toString() override { return "CompoundJobFailedEvent (job: " + this->job->getName() + "; cs = " +
69  this->compute_service->getName() + ")";}
70 
71  };
72 
73 
74 };
75 
76 /***********************/
78 /***********************/
79 
80 
81 
82 #endif //WRENCH_COMPOUND_JOB_FAILED_H
wrench::CompoundJobFailedEvent
A "standard job has failed" ExecutionEvent.
Definition: CompoundJobFailedEvent.h:37
wrench::CompoundJobFailedEvent::failure_cause
std::shared_ptr< FailureCause > failure_cause
The failure cause.
Definition: CompoundJobFailedEvent.h:62
wrench::CompoundJobFailedEvent::job
std::shared_ptr< CompoundJob > job
The standard job that has failed.
Definition: CompoundJobFailedEvent.h:58
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::CompoundJobFailedEvent::toString
std::string toString() override
Get a textual description of the event.
Definition: CompoundJobFailedEvent.h:68
wrench::CompoundJobFailedEvent::compute_service
std::shared_ptr< ComputeService > compute_service
The compute service on which the job has failed.
Definition: CompoundJobFailedEvent.h:60