10 #ifndef WRENCH_FILE_DELETE_ACTION_H
11 #define WRENCH_FILE_DELETE_ACTION_H
15 #include "wrench/action/Action.h"
28 std::shared_ptr<DataFile>
getFile()
const;
33 friend class CompoundJob;
36 std::shared_ptr<DataFile>file, std::shared_ptr<FileLocation> file_location);
39 void execute(std::shared_ptr<ActionExecutor> action_executor)
override;
40 void terminate(std::shared_ptr<ActionExecutor> action_executor)
override;
43 std::shared_ptr<DataFile>file;
44 std::shared_ptr<FileLocation> file_location;
49 #endif //WRENCH_FILE_DELETE_ACTION_H
std::shared_ptr< DataFile > getFile() const
Returns the action's file.
Definition: FileDeleteAction.cpp:43
Definition: Action.cpp:28
bool usesScratch() const override
Determine whether the action uses scratch.
Definition: FileDeleteAction.cpp:79
A class that implements a file deletion action.
Definition: FileDeleteAction.h:25
void terminate(std::shared_ptr< ActionExecutor > action_executor) override
Method called when the action terminates.
Definition: FileDeleteAction.cpp:71
void execute(std::shared_ptr< ActionExecutor > action_executor) override
Method to execute the action.
Definition: FileDeleteAction.cpp:60
std::shared_ptr< FileLocation > getFileLocation() const
Returns the action's file locations.
Definition: FileDeleteAction.cpp:51
An abstract class that implements the concept of an action.
Definition: Action.h:28
FileDeleteAction(const std::string &name, std::shared_ptr< CompoundJob > job, std::shared_ptr< DataFile >file, std::shared_ptr< FileLocation > file_location)
Constructor.
Definition: FileDeleteAction.cpp:32