Template Class ChunkOperation

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.

Protected Attributes

const std::string path_

Path to the chunk directory of the file.

std::vector<ABT_task> abt_tasks_

Tasklets operating on the file.

std::vector<ABT_eventual> task_eventuals_

Eventuals for tasklet callbacks.