wrench::LogicalFileSystemNoCaching

class LogicalFileSystemNoCaching : public wrench::LogicalFileSystem

A class that implements a weak file system abstraction.

Public Functions

virtual void decrementNumRunningTransactionsForFileInDirectory(const std::shared_ptr<DataFile> &file, const std::string &absolute_path) override

Decrement the number of running transactions that have to do with a file.

Parameters:
  • file – the file

  • absolute_path – the file path

virtual void incrementNumRunningTransactionsForFileInDirectory(const std::shared_ptr<DataFile> &file, const std::string &absolute_path) override

Increment the number of running transactions that have to do with a file.

Parameters:
  • file – the file

  • absolute_path – the file path

virtual void removeAllFilesInDirectory(const std::string &absolute_path) override

Remove all files in a directory.

Parameters:

absolute_path – the directory’s absolute path

Throws:

std::invalid_argument

virtual void removeFileFromDirectory(const std::shared_ptr<DataFile> &file, const std::string &absolute_path) override

Remove a file in a directory.

Parameters:
  • file – the file to remove

  • absolute_path – the directory’s absolute path

Throws:

std::invalid_argument

virtual void storeFileInDirectory(const std::shared_ptr<DataFile> &file, const std::string &absolute_path) override

Store file in directory.

Parameters:
  • file – the file to store

  • absolute_path – the directory’s absolute path (at the mount point)

Throws:

std::invalid_argument

virtual void updateReadDate(const std::shared_ptr<DataFile> &file, const std::string &absolute_path) override

Update a file’s read date.

Parameters:
  • file – the file

  • absolute_path – the path