libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/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 & | addMedium (zypp::proto::Capabilities::WorkerType workerType, const zypp::Url &baseUrl, ProvideMediaSpec &spec) |
AttachedMediaInfo & | addMedium (zypp::proto::Capabilities::WorkerType workerType, ProvideQueueWeakRef backingQueue, const std::string &id, const zypp::Url &baseUrl, ProvideMediaSpec &spec) |
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 > & | attachedMediaInfos () |
std::list< ProvideItemRef > & | items () |
zypp::media::CredManagerOptions & | credManagerOptions () |
ProvideStatusRef | log () |
uint32_t | nextRequestId () |
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 |
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 > | _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 |
Private Member Functions | |
ZYPP_DECLARE_PUBLIC (Provide) | |
Definition at line 50 of file provide_p.h.
Enumerator | |
---|---|
ProvideStart | |
QueueIdle | |
EnqueueItem | |
EnqueueReq | |
RestartAttach | |
FinishReq |
Definition at line 56 of file provide_p.h.
zyppng::ProvidePrivate::ProvidePrivate | ( | zypp::Pathname && | workDir, |
Provide & | pub | ||
) |
Definition at line 21 of file provide.cc.
|
private |
void zyppng::ProvidePrivate::schedule | ( | ScheduleReason | reason | ) |
Definition at line 38 of file provide.cc.
bool zyppng::ProvidePrivate::queueRequest | ( | ProvideRequestRef | req | ) |
Definition at line 792 of file provide.cc.
bool zyppng::ProvidePrivate::dequeueRequest | ( | ProvideRequestRef | req, |
std::exception_ptr | error | ||
) |
Definition at line 808 of file provide.cc.
void zyppng::ProvidePrivate::queueItem | ( | ProvideItemRef | item | ) |
Definition at line 753 of file provide.cc.
void zyppng::ProvidePrivate::dequeueItem | ( | ProvideItem * | item | ) |
Definition at line 759 of file provide.cc.
std::string zyppng::ProvidePrivate::nextMediaId | ( | ) | const |
Definition at line 771 of file provide.cc.
AttachedMediaInfo & zyppng::ProvidePrivate::addMedium | ( | zypp::proto::Capabilities::WorkerType | workerType, |
const zypp::Url & | baseUrl, | ||
ProvideMediaSpec & | spec | ||
) |
AttachedMediaInfo & zyppng::ProvidePrivate::addMedium | ( | zypp::proto::Capabilities::WorkerType | workerType, |
ProvideQueueWeakRef | backingQueue, | ||
const std::string & | id, | ||
const zypp::Url & | baseUrl, | ||
ProvideMediaSpec & | spec | ||
) |
Definition at line 785 of file provide.cc.
std::string zyppng::ProvidePrivate::effectiveScheme | ( | const std::string & | scheme | ) | const |
Definition at line 849 of file provide.cc.
void zyppng::ProvidePrivate::onPulseTimeout | ( | Timer & | ) |
Definition at line 858 of file provide.cc.
void zyppng::ProvidePrivate::onQueueIdle | ( | ) |
Definition at line 886 of file provide.cc.
void zyppng::ProvidePrivate::onItemStateChanged | ( | ProvideItem & | item | ) |
Definition at line 899 of file provide.cc.
expected< ProvideQueue::Config > zyppng::ProvidePrivate::schemeConfig | ( | const std::string & | scheme | ) |
Definition at line 712 of file provide.cc.
std::optional< zypp::ManagedFile > zyppng::ProvidePrivate::addToFileCache | ( | const zypp::Pathname & | downloadedFile | ) |
Definition at line 727 of file provide.cc.
bool zyppng::ProvidePrivate::isInCache | ( | const zypp::Pathname & | downloadedFile | ) | const |
Definition at line 747 of file provide.cc.
bool zyppng::ProvidePrivate::isRunning | ( | ) | const |
Definition at line 844 of file provide.cc.
const zypp::Pathname & zyppng::ProvidePrivate::workerPath | ( | ) | const |
Definition at line 830 of file provide.cc.
const std::string zyppng::ProvidePrivate::queueName | ( | ProvideQueue & | q | ) | const |
Definition at line 835 of file provide.cc.
std::vector< AttachedMediaInfo > & zyppng::ProvidePrivate::attachedMediaInfos | ( | ) |
Definition at line 707 of file provide.cc.
std::list< ProvideItemRef > & zyppng::ProvidePrivate::items | ( | ) |
Definition at line 697 of file provide.cc.
zypp::media::CredManagerOptions & zyppng::ProvidePrivate::credManagerOptions | ( | ) |
Definition at line 702 of file provide.cc.
|
inline |
Definition at line 98 of file provide_p.h.
uint32_t zyppng::ProvidePrivate::nextRequestId | ( | ) |
Definition at line 917 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 104 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 105 of file provide_p.h.
|
protected |
Definition at line 111 of file provide_p.h.
|
protected |
Definition at line 123 of file provide_p.h.
|
protected |
Definition at line 124 of file provide_p.h.
|
protected |
Definition at line 125 of file provide_p.h.
|
protected |
Definition at line 126 of file provide_p.h.
|
protected |
Definition at line 127 of file provide_p.h.
|
protected |
Definition at line 129 of file provide_p.h.
|
protected |
Definition at line 130 of file provide_p.h.
|
protected |
Definition at line 136 of file provide_p.h.
|
protected |
Definition at line 139 of file provide_p.h.
|
protected |
Definition at line 141 of file provide_p.h.
|
protected |
Definition at line 142 of file provide_p.h.
|
protected |
Definition at line 148 of file provide_p.h.
|
protected |
Definition at line 150 of file provide_p.h.
|
protected |
Definition at line 151 of file provide_p.h.
|
protected |
Definition at line 153 of file provide_p.h.
|
protected |
Definition at line 154 of file provide_p.h.