FileCopyFailedEvent.h
1 
11 #ifndef WRENCH_FILE_COPY_FAILED_EVENT_H
12 #define WRENCH_FILE_COPY_FAILED_EVENT_H
13 
14 #include <string>
15 #include "wrench/workflow/failure_causes/FailureCause.h"
16 
17 /***********************/
19 /***********************/
20 
21 namespace wrench {
22 
23  class WorkflowTask;
24 
25  class WorkflowFile;
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 
39 
44 
45  private:
46 
47  friend class WorkflowExecutionEvent;
56  std::shared_ptr<FileLocation> src,
57  std::shared_ptr<FileLocation> dst,
58  std::shared_ptr<FailureCause> failure_cause
59  )
60  : file(file), src(src), dst(dst),
62 
63  public:
64 
68  std::shared_ptr<FileLocation> src;
70  std::shared_ptr<FileLocation> dst;
72  std::shared_ptr<FailureCause> failure_cause;
73 
78  std::string toString() override {
79  return "FileCopyFailedEvent (file: " + this->file->getID() +
80  "; src = " + this->src->toString() +
81  "; dst = " + this->dst->toString() +
82  "; cause: " + this->failure_cause->toString() + ")";}
83 
84  };
85 
86 
87 };
88 
89 /***********************/
91 /***********************/
92 
93 
94 
95 #endif //WRENCH_FILE_COPY_FAILED_EVENT_H
std::shared_ptr< FailureCause > failure_cause
The cause of the failure.
Definition: FileCopyFailedEvent.h:72
std::shared_ptr< FileLocation > src
The source location.
Definition: FileCopyFailedEvent.h:68
WorkflowFile * file
The workflow file that has failed to be copied.
Definition: FileCopyFailedEvent.h:66
std::shared_ptr< FileLocation > dst
The destination location.
Definition: FileCopyFailedEvent.h:70
A "file copy has failed" WorkflowExecutionEvent.
Definition: FileCopyFailedEvent.h:43
Definition: Alarm.cpp:20
std::string toString() override
Get a textual description of the event.
Definition: FileCopyFailedEvent.h:78
std::string getID()
Get the file id.
Definition: WorkflowFile.cpp:44
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26
A class to represent the various execution events that are relevant to the execution of a workflow.
Definition: WorkflowExecutionEvent.h:26