10 #ifndef WRENCH_FILE_REGISTRY_ACTION_H
11 #define WRENCH_FILE_REGISTRY_ACTION_H
15 #include "wrench/action/Action.h"
21 class FileRegistryService;
29 std::shared_ptr<DataFile>
getFile()
const;
45 const std::string& name,
46 std::shared_ptr<CompoundJob> job,
47 std::shared_ptr<FileRegistryService> file_registry_service,
48 std::shared_ptr<DataFile>file,
49 std::shared_ptr<FileLocation> file_location);
52 void execute(std::shared_ptr<ActionExecutor> action_executor)
override;
53 void terminate(std::shared_ptr<ActionExecutor> action_executor)
override;
57 std::shared_ptr<FileRegistryService> file_registry_service;
58 std::shared_ptr<DataFile>file;
59 std::shared_ptr<FileLocation> file_location;
64 #endif //WRENCH_FILE_REGISTRY_ACTION_H
Type
File registry action type enum.
Definition: FileRegistryAction.h:39
void execute(std::shared_ptr< ActionExecutor > action_executor) override
Method to execute the action.
Definition: FileRegistryAction.cpp:74
void terminate(std::shared_ptr< ActionExecutor > action_executor) override
Method called when the action terminates.
Definition: FileRegistryAction.cpp:89
Definition: Action.cpp:28
FileRegistryAction(FileRegistryAction::Type type, const std::string &name, std::shared_ptr< CompoundJob > job, std::shared_ptr< FileRegistryService > file_registry_service, std::shared_ptr< DataFile >file, std::shared_ptr< FileLocation > file_location)
Constructor.
Definition: FileRegistryAction.cpp:35
std::shared_ptr< FileRegistryService > getFileRegistryService() const
Returns the action's file registry service.
Definition: FileRegistryAction.cpp:48
std::shared_ptr< FileLocation > getFileLocation() const
Returns the action's file locations.
Definition: FileRegistryAction.cpp:65
An abstract class that implements the concept of an action.
Definition: Action.h:28
A class that implements a file registry (abstract) action.
Definition: FileRegistryAction.h:26
A compound job.
Definition: CompoundJob.h:47
std::shared_ptr< DataFile > getFile() const
Returns the action's file.
Definition: FileRegistryAction.cpp:57