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/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;
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:
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
std::shared_ptr< FileLocation > dst
The destination location.
Definition: FileCopyCompletedEvent.h:71
std::string toString() override
Get a textual description of the event.
Definition: FileCopyCompletedEvent.h:81
Definition: Alarm.cpp:20
WorkflowFile * file
The workflow file that has successfully been copied.
Definition: FileCopyCompletedEvent.h:67
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
A "file copy has completed" WorkflowExecutionEvent.
Definition: FileCopyCompletedEvent.h:43
bool file_registry_service_updated
Whether the file registry service (if any) has been successfully updated.
Definition: FileCopyCompletedEvent.h:75
std::shared_ptr< FileLocation > src
The source location.
Definition: FileCopyCompletedEvent.h:69
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