libzypp 17.37.17
|
#include <zypp-media/ng/private/provide_p.h>
Classes | |
struct | FileCacheItem |
struct | QueueItem |
Public Types | |
enum | ScheduleReason { ProvideStart , QueueIdle , EnqueueItem , EnqueueReq , RestartAttach , FinishReq } |
Public Member Functions | |
ProvidePrivate (zypp::Pathname &&workDir, Provide &pub) | |
void | schedule (ScheduleReason reason) |
bool | queueRequest (ProvideRequestRef req) |
bool | dequeueRequest (ProvideRequestRef req, std::exception_ptr error) |
void | queueItem (ProvideItemRef item) |
void | dequeueItem (ProvideItem *item) |
std::string | nextMediaId () const |
AttachedMediaInfo_Ptr | addMedium (AttachedMediaInfo_Ptr &&medium) |
std::string | effectiveScheme (const std::string &scheme) const |
void | onPulseTimeout (Timer &) |
void | onQueueIdle () |
void | onItemStateChanged (ProvideItem &item) |
expected< ProvideQueue::Config > | schemeConfig (const std::string &scheme) |
std::optional< zypp::ManagedFile > | addToFileCache (const zypp::Pathname &downloadedFile) |
bool | isInCache (const zypp::Pathname &downloadedFile) const |
bool | isRunning () const |
const zypp::Pathname & | workerPath () const |
const std::string | queueName (ProvideQueue &q) const |
std::vector< AttachedMediaInfo_Ptr > & | attachedMediaInfos () |
std::list< ProvideItemRef > & | items () |
zypp::media::CredManagerOptions & | credManagerOptions () |
zypp::MirroredOrigin | sanitizeUrls (const zypp::MirroredOrigin &origin) |
ProvideStatusRef | log () |
uint32_t | nextRequestId () |
Public Member Functions inherited from zyppng::BasePrivate | |
BasePrivate (Base &b) | |
virtual | ~BasePrivate () |
virtual void | init () |
Public Attributes | |
Signal< Provide::MediaChangeAction(const std::string &, const std::string &, const int32_t, const std::vector< std::string > &, const std::optional< std::string > &) > | _sigMediaChange |
Signal< std::optional< zypp::media::AuthData >(const zypp::Url &reqUrl, const std::string &triedUsername, const std::map< std::string, std::string > &extraValues) > | _sigAuthRequired |
Public Attributes inherited from zyppng::BasePrivate | |
Base::WeakPtr | parent |
std::unordered_set< Base::Ptr > | children |
Base * | z_ptr = nullptr |
std::thread::id | threadId = std::this_thread::get_id() |
Protected Member Functions | |
void | doSchedule (Timer &) |
Protected Attributes | |
std::unordered_map< std::string, std::string > | _workerAlias |
bool | _isRunning = false |
bool | _isScheduling = false |
Timer::Ptr | _pulseTimer = Timer::create() |
Timer::Ptr | _scheduleTrigger = Timer::create() |
zypp::Pathname | _workDir |
std::list< ProvideItemRef > | _items |
uint32_t | _nextRequestId = 0 |
std::deque< QueueItem > | _queues |
std::vector< AttachedMediaInfo_Ptr > | _attachedMediaInfos |
std::unordered_map< std::string, ProvideQueueRef > | _workerQueues |
std::unordered_map< std::string, ProvideQueue::Config > | _schemeConfigs |
std::unordered_map< std::string, FileCacheItem > | _fileCache |
zypp::Pathname | _workerPath |
zypp::media::CredManagerOptions | _credManagerOptions |
ProvideStatusRef | _log |
Signal< void()> | _sigIdle |
Definition at line 41 of file provide_p.h.
Enumerator | |
---|---|
ProvideStart | |
QueueIdle | |
EnqueueItem | |
EnqueueReq | |
RestartAttach | |
FinishReq |
Definition at line 47 of file provide_p.h.
zyppng::ProvidePrivate::ProvidePrivate | ( | zypp::Pathname && | workDir, |
Provide & | pub ) |
Definition at line 21 of file provide.cc.
void zyppng::ProvidePrivate::schedule | ( | ScheduleReason | reason | ) |
Definition at line 38 of file provide.cc.
bool zyppng::ProvidePrivate::queueRequest | ( | ProvideRequestRef | req | ) |
Definition at line 816 of file provide.cc.
bool zyppng::ProvidePrivate::dequeueRequest | ( | ProvideRequestRef | req, |
std::exception_ptr | error ) |
Definition at line 832 of file provide.cc.
void zyppng::ProvidePrivate::queueItem | ( | ProvideItemRef | item | ) |
Definition at line 780 of file provide.cc.
void zyppng::ProvidePrivate::dequeueItem | ( | ProvideItem * | item | ) |
Definition at line 786 of file provide.cc.
std::string zyppng::ProvidePrivate::nextMediaId | ( | ) | const |
Definition at line 798 of file provide.cc.
AttachedMediaInfo_Ptr zyppng::ProvidePrivate::addMedium | ( | AttachedMediaInfo_Ptr && | medium | ) |
Definition at line 804 of file provide.cc.
std::string zyppng::ProvidePrivate::effectiveScheme | ( | const std::string & | scheme | ) | const |
Definition at line 873 of file provide.cc.
void zyppng::ProvidePrivate::onPulseTimeout | ( | Timer & | ) |
Definition at line 882 of file provide.cc.
void zyppng::ProvidePrivate::onQueueIdle | ( | ) |
Definition at line 910 of file provide.cc.
void zyppng::ProvidePrivate::onItemStateChanged | ( | ProvideItem & | item | ) |
Definition at line 923 of file provide.cc.
expected< ProvideQueue::Config > zyppng::ProvidePrivate::schemeConfig | ( | const std::string & | scheme | ) |
Definition at line 739 of file provide.cc.
std::optional< zypp::ManagedFile > zyppng::ProvidePrivate::addToFileCache | ( | const zypp::Pathname & | downloadedFile | ) |
Definition at line 754 of file provide.cc.
bool zyppng::ProvidePrivate::isInCache | ( | const zypp::Pathname & | downloadedFile | ) | const |
Definition at line 774 of file provide.cc.
bool zyppng::ProvidePrivate::isRunning | ( | ) | const |
Definition at line 868 of file provide.cc.
const zypp::Pathname & zyppng::ProvidePrivate::workerPath | ( | ) | const |
Definition at line 854 of file provide.cc.
const std::string zyppng::ProvidePrivate::queueName | ( | ProvideQueue & | q | ) | const |
Definition at line 859 of file provide.cc.
std::vector< AttachedMediaInfo_Ptr > & zyppng::ProvidePrivate::attachedMediaInfos | ( | ) |
Definition at line 734 of file provide.cc.
std::list< ProvideItemRef > & zyppng::ProvidePrivate::items | ( | ) |
Definition at line 699 of file provide.cc.
zypp::media::CredManagerOptions & zyppng::ProvidePrivate::credManagerOptions | ( | ) |
Definition at line 704 of file provide.cc.
zypp::MirroredOrigin zyppng::ProvidePrivate::sanitizeUrls | ( | const zypp::MirroredOrigin & | origin | ) |
Definition at line 709 of file provide.cc.
|
inline |
Definition at line 90 of file provide_p.h.
uint32_t zyppng::ProvidePrivate::nextRequestId | ( | ) |
Definition at line 941 of file provide.cc.
|
protected |
Definition at line 70 of file provide.cc.
Signal< Provide::MediaChangeAction ( const std::string &, const std::string &, const int32_t, const std::vector<std::string> &, const std::optional<std::string> &) > zyppng::ProvidePrivate::_sigMediaChange |
Definition at line 96 of file provide_p.h.
Signal< std::optional<zypp::media::AuthData>( const zypp::Url &reqUrl, const std::string &triedUsername, const std::map<std::string, std::string> &extraValues ) > zyppng::ProvidePrivate::_sigAuthRequired |
Definition at line 97 of file provide_p.h.
|
protected |
Definition at line 103 of file provide_p.h.
|
protected |
Definition at line 115 of file provide_p.h.
|
protected |
Definition at line 116 of file provide_p.h.
|
protected |
Definition at line 117 of file provide_p.h.
|
protected |
Definition at line 118 of file provide_p.h.
|
protected |
Definition at line 119 of file provide_p.h.
|
protected |
Definition at line 121 of file provide_p.h.
|
protected |
Definition at line 122 of file provide_p.h.
|
protected |
Definition at line 128 of file provide_p.h.
|
protected |
Definition at line 131 of file provide_p.h.
|
protected |
Definition at line 133 of file provide_p.h.
|
protected |
Definition at line 134 of file provide_p.h.
|
protected |
Definition at line 140 of file provide_p.h.
|
protected |
Definition at line 142 of file provide_p.h.
|
protected |
Definition at line 143 of file provide_p.h.
|
protected |
Definition at line 145 of file provide_p.h.
|
protected |
Definition at line 146 of file provide_p.h.