11 #ifndef WRENCH_STANDARD_JOB_FAILED_H
12 #define WRENCH_STANDARD_JOB_FAILED_H
15 #include "wrench/failure_causes/FailureCause.h"
35 class FileRegistryService;
37 class FileRegistryService;
42 class StandardJobFailedEvent :
public ExecutionEvent {
46 friend class ExecutionEvent;
54 StandardJobFailedEvent(std::shared_ptr<StandardJob> standard_job,
55 std::shared_ptr<ComputeService> compute_service,
56 std::shared_ptr<FailureCause> failure_cause)
57 : standard_job(standard_job),
58 compute_service(compute_service),
59 failure_cause(failure_cause) {}
64 std::shared_ptr<StandardJob> standard_job;
66 std::shared_ptr<ComputeService> compute_service;
68 std::shared_ptr<FailureCause> failure_cause;
74 std::string
toString()
override {
return "StandardJobFailedEvent (job: " + this->standard_job->getName() +
"; cs = " +
75 this->compute_service->getName() +
"; cause: " + this->failure_cause->toString() +
")";}
88 #endif //WRENCH_STANDARD_JOB_FAILED_H