WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
FileCopyCompletedEvent.h
1 
11 #ifndef WRENCH_FILE_COPY_COMPLETED_EVENT_H
12 #define WRENCH_FILE_COPY_COMPLETED_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 
43  class FileCopyCompletedEvent : public ExecutionEvent {
44 
45  private:
46 
47  friend class ExecutionEvent;
56  FileCopyCompletedEvent(std::shared_ptr<DataFile>file,
57  std::shared_ptr<FileLocation> src,
58  std::shared_ptr<FileLocation> dst,
59  std::shared_ptr<FileRegistryService> file_registry_service,
60  bool file_registry_service_updated)
61  : file(file), src(src), dst(dst),
62  file_registry_service(file_registry_service),
63  file_registry_service_updated(file_registry_service_updated) {}
64 
65  public:
67  std::shared_ptr<DataFile>file;
69  std::shared_ptr<FileLocation> src;
71  std::shared_ptr<FileLocation> dst;
73  std::shared_ptr<FileRegistryService> file_registry_service;
75  bool file_registry_service_updated;
76 
81  std::string toString() override {
82  return "FileCopyCompletedEvent (file: " + this->file->getID() +
83  "; src = " + this->src->toString() +
84  "; dst = "+ this->dst->toString();
85  }
86 
87  };
88 
89 
90 
91 
92 };
93 
94 /***********************/
96 /***********************/
97 
98 
99 
100 #endif //WRENCH_FILE_COPY_COMPLETED_EVENT_H
wrench::toString
std::string toString() override
Return an error message that describes the failure cause (to be overridden)
Definition: ComputeThreadHasDied.cpp:29
wrench
Definition: Action.cpp:28