Template Class ChunkOperation
Defined in File data.hpp
Class Documentation
-
template<class OperationType>
class gkfs::data::ChunkOperation Base class (using CRTP idiom) for all chunk operations.
This class is not thread-safe.
- Template Parameters
OperationType – for write, read, and truncate.
Public Functions
-
inline explicit ChunkOperation(const std::string &path)
Constructor for a single chunk operation.
- Parameters
path – Path to chunk directory
-
inline ChunkOperation(std::string path, size_t n)
Constructor to initialize tasklet and eventual lists.
- Parameters
path – Path to chunk directory
n – Number of chunk operations by I/O request
-
inline ~ChunkOperation()
Destructor calls cancel_all_tasks to clean up all used resources.
-
inline void cancel_all_tasks()
Cancels all tasks in-flight and free resources.