CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
upload::AbstractUploader::UploadJob Struct Reference

#include <upload_facility.h>

Collaboration diagram for upload::AbstractUploader::UploadJob:

Public Types

enum  Type { Upload, Commit, Terminate }
 

Public Member Functions

 UploadJob (UploadStreamHandle *handle, UploadBuffer buffer, const CallbackTN *callback=NULL)
 
 UploadJob (UploadStreamHandle *handle, const shash::Any &content_hash)
 
 UploadJob ()
 
bool IsQuitBeacon ()
 
int64_t tag ()
 

Static Public Member Functions

static UploadJobCreateQuitBeacon ()
 

Public Attributes

Type type
 
UploadStreamHandlestream_handle
 
int64_t tag_
 
UploadBuffer buffer
 
const CallbackTNcallback
 
shash::Any content_hash
 

Detailed Description

Definition at line 104 of file upload_facility.h.

Member Enumeration Documentation

Enumerator
Upload 
Commit 
Terminate 

Definition at line 105 of file upload_facility.h.

Constructor & Destructor Documentation

upload::AbstractUploader::UploadJob::UploadJob ( UploadStreamHandle handle,
UploadBuffer  buffer,
const CallbackTN callback = NULL 
)

Definition at line 18 of file upload_facility.cc.

upload::AbstractUploader::UploadJob::UploadJob ( UploadStreamHandle handle,
const shash::Any content_hash 
)

Definition at line 29 of file upload_facility.cc.

upload::AbstractUploader::UploadJob::UploadJob ( )
inline

Definition at line 111 of file upload_facility.h.

Referenced by CreateQuitBeacon().

Here is the caller graph for this function:

Member Function Documentation

static UploadJob* upload::AbstractUploader::UploadJob::CreateQuitBeacon ( )
inlinestatic

Definition at line 118 of file upload_facility.h.

Here is the call graph for this function:

bool upload::AbstractUploader::UploadJob::IsQuitBeacon ( )
inline

Definition at line 119 of file upload_facility.h.

int64_t upload::AbstractUploader::UploadJob::tag ( )
inline

Definition at line 128 of file upload_facility.h.

Member Data Documentation

UploadBuffer upload::AbstractUploader::UploadJob::buffer

Definition at line 131 of file upload_facility.h.

Referenced by upload::TaskUpload::Process().

const CallbackTN* upload::AbstractUploader::UploadJob::callback

Definition at line 132 of file upload_facility.h.

Referenced by upload::TaskUpload::Process().

shash::Any upload::AbstractUploader::UploadJob::content_hash

Definition at line 135 of file upload_facility.h.

Referenced by upload::TaskUpload::Process().

UploadStreamHandle* upload::AbstractUploader::UploadJob::stream_handle

Definition at line 122 of file upload_facility.h.

Referenced by upload::TaskUpload::Process().

int64_t upload::AbstractUploader::UploadJob::tag_

Ensure that upload jobs belonging to the same file end up in the same upload task queue.

Definition at line 127 of file upload_facility.h.

Referenced by tag().

Type upload::AbstractUploader::UploadJob::type

Definition at line 121 of file upload_facility.h.

Referenced by IsQuitBeacon(), and upload::TaskUpload::Process().


The documentation for this struct was generated from the following files: