CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
download::JobInfo Struct Reference

#include <download.h>

Collaboration diagram for download::JobInfo:

Public Member Functions

void Init ()
 
 JobInfo ()
 
 JobInfo (const std::string *u, const bool c, const bool ph, const std::string *p, const shash::Any *h)
 
 JobInfo (const std::string *u, const bool c, const bool ph, FILE *f, const shash::Any *h)
 
 JobInfo (const std::string *u, const bool c, const bool ph, const shash::Any *h)
 
 JobInfo (const std::string *u, const bool c, const bool ph, cvmfs::Sink *s, const shash::Any *h)
 
 JobInfo (const std::string *u, const bool ph)
 
 ~JobInfo ()
 
bool IsFileNotFound ()
 

Public Attributes

const std::string * url
 
bool compressed
 
bool probe_hosts
 
bool head_request
 
bool follow_redirects
 
bool force_nocache
 
pid_t pid
 
uid_t uid
 
gid_t gid
 
void * cred_data
 
Destination destination
 
struct {
   size_t   size
 
   size_t   pos
 
   char *   data
 
destination_mem
 
FILE * destination_file
 
const std::string * destination_path
 
cvmfs::Sinkdestination_sink
 
const shash::Anyexpected_hash
 
const std::string * extra_info
 
off_t range_offset
 
off_t range_size
 
CURL * curl_handle
 
curl_slist * headers
 
char * info_header
 
z_stream zstream
 
shash::ContextPtr hash_context
 
int wait_at [2]
 
std::string proxy
 
bool nocache
 
Failures error_code
 
int http_code
 
unsigned char num_used_proxies
 
unsigned char num_used_hosts
 
unsigned char num_retries
 
unsigned backoff_ms
 
unsigned int current_host_chain_index
 

Detailed Description

Contains all the information to specify a download job.

Definition at line 149 of file download.h.

Constructor & Destructor Documentation

download::JobInfo::JobInfo ( )
inline

Definition at line 214 of file download.h.

Here is the call graph for this function:

download::JobInfo::JobInfo ( const std::string *  u,
const bool  c,
const bool  ph,
const std::string *  p,
const shash::Any h 
)
inline

Definition at line 215 of file download.h.

Here is the call graph for this function:

download::JobInfo::JobInfo ( const std::string *  u,
const bool  c,
const bool  ph,
FILE *  f,
const shash::Any h 
)
inline

Definition at line 226 of file download.h.

Here is the call graph for this function:

download::JobInfo::JobInfo ( const std::string *  u,
const bool  c,
const bool  ph,
const shash::Any h 
)
inline

Definition at line 237 of file download.h.

Here is the call graph for this function:

download::JobInfo::JobInfo ( const std::string *  u,
const bool  c,
const bool  ph,
cvmfs::Sink s,
const shash::Any h 
)
inline

Definition at line 247 of file download.h.

Here is the call graph for this function:

download::JobInfo::JobInfo ( const std::string *  u,
const bool  ph 
)
inline

Definition at line 258 of file download.h.

Here is the call graph for this function:

download::JobInfo::~JobInfo ( )
inline

Definition at line 265 of file download.h.

Member Function Documentation

void download::JobInfo::Init ( )
inline

Definition at line 177 of file download.h.

Referenced by JobInfo().

Here is the caller graph for this function:

bool download::JobInfo::IsFileNotFound ( )

Tells whether the error is because of a non-existing file. Should only be called if error_code is not kFailOk

Definition at line 364 of file download.cc.

Referenced by publish::DownloadRootObjects(), and publish::IsMasterReplica().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned download::JobInfo::backoff_ms
void* download::JobInfo::cred_data
unsigned int download::JobInfo::current_host_chain_index
FILE* download::JobInfo::destination_file
const std::string* download::JobInfo::destination_path
const std::string* download::JobInfo::extra_info

Definition at line 170 of file download.h.

Referenced by cvmfs::Fetcher::Fetch(), download::DownloadManager::Fetch(), and Init().

bool download::JobInfo::follow_redirects
bool download::JobInfo::force_nocache
gid_t download::JobInfo::gid

Definition at line 158 of file download.h.

Referenced by cvmfs::Fetcher::Fetch(), and Init().

bool download::JobInfo::head_request

Definition at line 153 of file download.h.

Referenced by Init(), download::DownloadManager::InitializeRequest(), and JobInfo().

char* download::JobInfo::info_header
unsigned char download::JobInfo::num_retries
unsigned char download::JobInfo::num_used_hosts
unsigned char download::JobInfo::num_used_proxies
pid_t download::JobInfo::pid
bool download::JobInfo::probe_hosts
off_t download::JobInfo::range_offset
off_t download::JobInfo::range_size
uid_t download::JobInfo::uid

Definition at line 157 of file download.h.

Referenced by cvmfs::Fetcher::Fetch(), and Init().

int download::JobInfo::wait_at[2]

Pipe used for the return value

Definition at line 284 of file download.h.

Referenced by download::DownloadManager::Fetch(), Init(), download::DownloadManager::MainDownload(), and ~JobInfo().

z_stream download::JobInfo::zstream

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