WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
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/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 
39 
44 
45  private:
46 
47  friend class ExecutionEvent;
55  FileCopyFailedEvent(std::shared_ptr<DataFile>file,
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 
66  std::shared_ptr<DataFile>file;
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
wrench::FileCopyFailedEvent::failure_cause
std::shared_ptr< FailureCause > failure_cause
The cause of the failure.
Definition: FileCopyFailedEvent.h:72
wrench::FileCopyFailedEvent::src
std::shared_ptr< FileLocation > src
The source location.
Definition: FileCopyFailedEvent.h:68
wrench::FileCopyFailedEvent::dst
std::shared_ptr< FileLocation > dst
The destination location.
Definition: FileCopyFailedEvent.h:70
wrench::FileCopyFailedEvent
A "file copy has failed" ExecutionEvent.
Definition: FileCopyFailedEvent.h:43
wrench
Definition: Action.cpp:28
wrench::FileCopyFailedEvent::toString
std::string toString() override
Get a textual description of the event.
Definition: FileCopyFailedEvent.h:78
wrench::ExecutionEvent
A class to represent the various execution events that are relevant to the execution of a workflow.
Definition: ExecutionEvent.h:26
wrench::FileCopyFailedEvent::file
std::shared_ptr< DataFile > file
The workflow file that has failed to be copied.
Definition: FileCopyFailedEvent.h:66