libzypp  13.10.6
zypp::media::multifetchrequest Class Reference

Public Member Functions

 multifetchrequest (const MediaMultiCurl *context, const Pathname &filename, const Url &baseurl, CURLM *multi, FILE *fp, callback::SendReport< DownloadProgressReport > *report, MediaBlockList *blklist, off_t filesize)
 
 ~multifetchrequest ()
 
void run (std::vector< Url > &urllist)
 

Public Attributes

double _timeout
 
double _connect_timeout
 
double _maxspeed
 
int _maxworkers
 

Protected Attributes

const MediaMultiCurl_context
 
const Pathname _filename
 
Url _baseurl
 
FILE * _fp
 
callback::SendReport
< DownloadProgressReport > * 
_report
 
MediaBlockList_blklist
 
off_t _filesize
 
CURLM * _multi
 
std::list< multifetchworker * > _workers
 
bool _stealing
 
bool _havenewjob
 
size_t _blkno
 
off_t _blkoff
 
size_t _activeworkers
 
size_t _lookupworkers
 
size_t _sleepworkers
 
double _minsleepuntil
 
bool _finished
 
off_t _totalsize
 
off_t _fetchedsize
 
off_t _fetchedgoodsize
 
double _starttime
 
double _lastprogress
 
double _lastperiodstart
 
double _lastperiodfetched
 
double _periodavg
 

Friends

class multifetchworker
 

Detailed Description

Definition at line 113 of file MediaMultiCurl.cc.

Constructor & Destructor Documentation

zypp::media::multifetchrequest::multifetchrequest ( const MediaMultiCurl context,
const Pathname &  filename,
const Url baseurl,
CURLM *  multi,
FILE *  fp,
callback::SendReport< DownloadProgressReport > *  report,
MediaBlockList blklist,
off_t  filesize 
)

Definition at line 785 of file MediaMultiCurl.cc.

zypp::media::multifetchrequest::~multifetchrequest ( )

Definition at line 826 of file MediaMultiCurl.cc.

Member Function Documentation

void zypp::media::multifetchrequest::run ( std::vector< Url > &  urllist)

Definition at line 838 of file MediaMultiCurl.cc.

Friends And Related Function Documentation

friend class multifetchworker
friend

Definition at line 121 of file MediaMultiCurl.cc.

Member Data Documentation

const MediaMultiCurl* zypp::media::multifetchrequest::_context
protected

Definition at line 123 of file MediaMultiCurl.cc.

const Pathname zypp::media::multifetchrequest::_filename
protected

Definition at line 124 of file MediaMultiCurl.cc.

Url zypp::media::multifetchrequest::_baseurl
protected

Definition at line 125 of file MediaMultiCurl.cc.

FILE* zypp::media::multifetchrequest::_fp
protected

Definition at line 127 of file MediaMultiCurl.cc.

callback::SendReport<DownloadProgressReport>* zypp::media::multifetchrequest::_report
protected

Definition at line 128 of file MediaMultiCurl.cc.

MediaBlockList* zypp::media::multifetchrequest::_blklist
protected

Definition at line 129 of file MediaMultiCurl.cc.

off_t zypp::media::multifetchrequest::_filesize
protected

Definition at line 130 of file MediaMultiCurl.cc.

CURLM* zypp::media::multifetchrequest::_multi
protected

Definition at line 132 of file MediaMultiCurl.cc.

std::list<multifetchworker *> zypp::media::multifetchrequest::_workers
protected

Definition at line 134 of file MediaMultiCurl.cc.

bool zypp::media::multifetchrequest::_stealing
protected

Definition at line 135 of file MediaMultiCurl.cc.

bool zypp::media::multifetchrequest::_havenewjob
protected

Definition at line 136 of file MediaMultiCurl.cc.

size_t zypp::media::multifetchrequest::_blkno
protected

Definition at line 138 of file MediaMultiCurl.cc.

off_t zypp::media::multifetchrequest::_blkoff
protected

Definition at line 139 of file MediaMultiCurl.cc.

size_t zypp::media::multifetchrequest::_activeworkers
protected

Definition at line 140 of file MediaMultiCurl.cc.

size_t zypp::media::multifetchrequest::_lookupworkers
protected

Definition at line 141 of file MediaMultiCurl.cc.

size_t zypp::media::multifetchrequest::_sleepworkers
protected

Definition at line 142 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_minsleepuntil
protected

Definition at line 143 of file MediaMultiCurl.cc.

bool zypp::media::multifetchrequest::_finished
protected

Definition at line 144 of file MediaMultiCurl.cc.

off_t zypp::media::multifetchrequest::_totalsize
protected

Definition at line 145 of file MediaMultiCurl.cc.

off_t zypp::media::multifetchrequest::_fetchedsize
protected

Definition at line 146 of file MediaMultiCurl.cc.

off_t zypp::media::multifetchrequest::_fetchedgoodsize
protected

Definition at line 147 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_starttime
protected

Definition at line 149 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_lastprogress
protected

Definition at line 150 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_lastperiodstart
protected

Definition at line 152 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_lastperiodfetched
protected

Definition at line 153 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_periodavg
protected

Definition at line 154 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_timeout

Definition at line 157 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_connect_timeout

Definition at line 158 of file MediaMultiCurl.cc.

double zypp::media::multifetchrequest::_maxspeed

Definition at line 159 of file MediaMultiCurl.cc.

int zypp::media::multifetchrequest::_maxworkers

Definition at line 160 of file MediaMultiCurl.cc.


The documentation for this class was generated from the following file: