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 
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,
61  : file(file), src(src), dst(dst),
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;
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::FileCopyCompletedEvent::dst
std::shared_ptr< FileLocation > dst
The destination location.
Definition: FileCopyCompletedEvent.h:71
wrench::FileCopyCompletedEvent::toString
std::string toString() override
Get a textual description of the event.
Definition: FileCopyCompletedEvent.h:81
wrench
Definition: Action.cpp:28
wrench::FileCopyCompletedEvent::file_registry_service
std::shared_ptr< FileRegistryService > file_registry_service
The file registry service that was supposed to be updated (or nullptr if none)
Definition: FileCopyCompletedEvent.h:73
wrench::ExecutionEvent
A class to represent the various execution events that are relevant to the execution of a workflow.
Definition: ExecutionEvent.h:26
wrench::FileCopyCompletedEvent
A "file copy has completed" ExecutionEvent.
Definition: FileCopyCompletedEvent.h:43
wrench::FileCopyCompletedEvent::file_registry_service_updated
bool file_registry_service_updated
Whether the file registry service (if any) has been successfully updated.
Definition: FileCopyCompletedEvent.h:75
wrench::FileCopyCompletedEvent::src
std::shared_ptr< FileLocation > src
The source location.
Definition: FileCopyCompletedEvent.h:69
wrench::FileCopyCompletedEvent::file
std::shared_ptr< DataFile > file
The workflow file that has successfully been copied.
Definition: FileCopyCompletedEvent.h:67