NCCLOUD  0.1
Public Types | Public Member Functions | Data Fields
Job Class Reference

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)
Codingcoding
 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
Jobnext_job
 pointer to an object describing the next job (NULL for none)

Detailed Description

Class for a storage/coding job assigned to a master storage/coding thread in FileOp.


Member Enumeration Documentation

All types of jobs.

Storage jobs < DIVIDER; coding jobs > DIVIDER.

Enumerator:
ULMETACHUNKS 
ULMETA 
DLCHUNKS 
DLMETA 
DIVIDER 
DECODE 
REPAIR 

Constructor & Destructor Documentation

Job::Job ( int  action,
Coding coding,
std::vector< Storage * > *  storages,
std::string &  tmpdir,
std::string &  filename 
)

Member Function Documentation

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().


Field Documentation

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


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Enumerations Enumerator Defines