NCCLOUD
0.1
|
Class for a storage/coding job assigned to a master storage/coding thread in FileOp. More...
#include <fileop.h>
Public Types | |
enum | ACTIONS { ULMETACHUNKS, ULMETA, DLCHUNKS, DLMETA, DIVIDER, DECODE, REPAIR } |
All types of jobs. More... | |
Public Member Functions | |
Job (int action, Coding *coding, std::vector< Storage * > *storages, std::string &tmpdir, std::string &filename) | |
void | follow_job (void) |
Add the next job (if any) to the appropriate job queue. | |
void | run_job (void) |
Run the corresponding job routine for the current job, then call follow_job(). | |
Data Fields | |
int | action |
job to carry out (see enum ACTIONS) | |
Coding * | coding |
coding scheme used | |
std::vector< Storage * > * | storages |
all storage nodes used | |
std::string | tmpdir |
path to temporary directory | |
std::string | filename |
name of file to act on | |
std::vector< int > | chunk_indices |
indices of chunks involved in current job | |
std::vector< int > | node_indices |
indices of nodes involved in current job | |
Job * | next_job |
pointer to an object describing the next job (NULL for none) |
Class for a storage/coding job assigned to a master storage/coding thread in FileOp.
enum Job::ACTIONS |
All types of jobs.
Storage jobs < DIVIDER; coding jobs > DIVIDER.
Job::Job | ( | int | action, |
Coding * | coding, | ||
std::vector< Storage * > * | storages, | ||
std::string & | tmpdir, | ||
std::string & | filename | ||
) |
void Job::follow_job | ( | void | ) |
Add the next job (if any) to the appropriate job queue.
void Job::run_job | ( | void | ) |
Run the corresponding job routine for the current job, then call follow_job().
int Job::action |
job to carry out (see enum ACTIONS)
std::vector<int> Job::chunk_indices |
indices of chunks involved in current job
coding scheme used
std::string Job::filename |
name of file to act on
pointer to an object describing the next job (NULL for none)
std::vector<int> Job::node_indices |
indices of nodes involved in current job
std::vector<Storage *>* Job::storages |
all storage nodes used
std::string Job::tmpdir |
path to temporary directory