11 #ifndef WRENCH_COMPOUND_JOB_FAILED_H
12 #define WRENCH_COMPOUND_JOB_FAILED_H
16 #include "wrench/failure_causes/FailureCause.h"
17 #include "wrench/job/CompoundJob.h"
31 class FileRegistryService;
32 class FileRegistryService;
37 class CompoundJobFailedEvent :
public ExecutionEvent {
41 friend class ExecutionEvent;
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)) {}
58 std::shared_ptr<CompoundJob> job;
60 std::shared_ptr<ComputeService> compute_service;
62 std::shared_ptr<FailureCause> failure_cause;
68 std::string
toString()
override {
return "CompoundJobFailedEvent (job: " + this->job->getName() +
"; cs = " +
69 this->compute_service->getName() +
")";}
82 #endif //WRENCH_COMPOUND_JOB_FAILED_H