libzypp  17.14.0
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 114 of file MediaMultiCurl.cc.

Constructor & Destructor Documentation

◆ multifetchrequest()

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 786 of file MediaMultiCurl.cc.

◆ ~multifetchrequest()

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

Definition at line 827 of file MediaMultiCurl.cc.

Member Function Documentation

◆ run()

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

Definition at line 839 of file MediaMultiCurl.cc.

Friends And Related Function Documentation

◆ multifetchworker

friend class multifetchworker
friend

Definition at line 122 of file MediaMultiCurl.cc.

Member Data Documentation

◆ _context

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

Definition at line 124 of file MediaMultiCurl.cc.

◆ _filename

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

Definition at line 125 of file MediaMultiCurl.cc.

◆ _baseurl

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

Definition at line 126 of file MediaMultiCurl.cc.

◆ _fp

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

Definition at line 128 of file MediaMultiCurl.cc.

◆ _report

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

Definition at line 129 of file MediaMultiCurl.cc.

◆ _blklist

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

Definition at line 130 of file MediaMultiCurl.cc.

◆ _filesize

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

Definition at line 131 of file MediaMultiCurl.cc.

◆ _multi

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

Definition at line 133 of file MediaMultiCurl.cc.

◆ _workers

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

Definition at line 135 of file MediaMultiCurl.cc.

◆ _stealing

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

Definition at line 136 of file MediaMultiCurl.cc.

◆ _havenewjob

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

Definition at line 137 of file MediaMultiCurl.cc.

◆ _blkno

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

Definition at line 139 of file MediaMultiCurl.cc.

◆ _blkoff

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

Definition at line 140 of file MediaMultiCurl.cc.

◆ _activeworkers

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

Definition at line 141 of file MediaMultiCurl.cc.

◆ _lookupworkers

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

Definition at line 142 of file MediaMultiCurl.cc.

◆ _sleepworkers

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

Definition at line 143 of file MediaMultiCurl.cc.

◆ _minsleepuntil

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

Definition at line 144 of file MediaMultiCurl.cc.

◆ _finished

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

Definition at line 145 of file MediaMultiCurl.cc.

◆ _totalsize

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

Definition at line 146 of file MediaMultiCurl.cc.

◆ _fetchedsize

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

Definition at line 147 of file MediaMultiCurl.cc.

◆ _fetchedgoodsize

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

Definition at line 148 of file MediaMultiCurl.cc.

◆ _starttime

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

Definition at line 150 of file MediaMultiCurl.cc.

◆ _lastprogress

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

Definition at line 151 of file MediaMultiCurl.cc.

◆ _lastperiodstart

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

Definition at line 153 of file MediaMultiCurl.cc.

◆ _lastperiodfetched

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

Definition at line 154 of file MediaMultiCurl.cc.

◆ _periodavg

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

Definition at line 155 of file MediaMultiCurl.cc.

◆ _timeout

double zypp::media::multifetchrequest::_timeout

Definition at line 158 of file MediaMultiCurl.cc.

◆ _connect_timeout

double zypp::media::multifetchrequest::_connect_timeout

Definition at line 159 of file MediaMultiCurl.cc.

◆ _maxspeed

double zypp::media::multifetchrequest::_maxspeed

Definition at line 160 of file MediaMultiCurl.cc.

◆ _maxworkers

int zypp::media::multifetchrequest::_maxworkers

Definition at line 161 of file MediaMultiCurl.cc.


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