libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-curl/ng/network/private/mirrorcontrol_p.h>
Classes | |
struct | Mirror |
struct | PickResult |
Public Types | |
using | Ptr = std::shared_ptr< MirrorControl > |
using | MirrorHandle = std::shared_ptr< Mirror > |
using | MirrorPick = std::pair< std::vector< Url >::const_iterator, MirrorHandle > |
Public Member Functions | |
virtual | ~MirrorControl () |
void | registerMirrors (const std::vector< zypp::media::MetalinkMirror > &urls) |
PickResult | pickBestMirror (const std::vector< Url > &mirrors) |
bool | allMirrorsReady () const |
SignalProxy< void()> | sigNewMirrorsReady () |
SignalProxy< void()> | sigAllMirrorsReady () |
Static Public Member Functions | |
static Ptr | create () |
Private Member Functions | |
MirrorControl () | |
std::string | makeKey (const zypp::Url &url) const |
Private Attributes | |
sigc::connection | _queueEmptyConn |
NetworkRequestDispatcher::Ptr | _dispatcher |
std::unordered_map< std::string, MirrorHandle > | _handles |
Timer::Ptr | _newMirrSigDelay |
Signal< void()> | _sigAllMirrorsReady |
Signal< void()> | _sigNewMirrorsReady |
Definition at line 29 of file mirrorcontrol_p.h.
using zyppng::MirrorControl::Ptr = std::shared_ptr<MirrorControl> |
Definition at line 63 of file mirrorcontrol_p.h.
using zyppng::MirrorControl::MirrorHandle = std::shared_ptr<Mirror> |
Definition at line 64 of file mirrorcontrol_p.h.
using zyppng::MirrorControl::MirrorPick = std::pair< std::vector<Url>::const_iterator, MirrorHandle > |
Definition at line 65 of file mirrorcontrol_p.h.
|
virtual |
Definition at line 109 of file mirrorcontrol.cc.
|
private |
Definition at line 70 of file mirrorcontrol.cc.
|
static |
Definition at line 104 of file mirrorcontrol.cc.
void zyppng::MirrorControl::registerMirrors | ( | const std::vector< zypp::media::MetalinkMirror > & | urls | ) |
Definition at line 126 of file mirrorcontrol.cc.
MirrorControl::PickResult zyppng::MirrorControl::pickBestMirror | ( | const std::vector< Url > & | mirrors | ) |
Definition at line 193 of file mirrorcontrol.cc.
bool zyppng::MirrorControl::allMirrorsReady | ( | ) | const |
SignalProxy< void()> zyppng::MirrorControl::sigNewMirrorsReady | ( | ) |
Definition at line 238 of file mirrorcontrol.cc.
SignalProxy< void()> zyppng::MirrorControl::sigAllMirrorsReady | ( | ) |
Definition at line 243 of file mirrorcontrol.cc.
|
private |
Definition at line 248 of file mirrorcontrol.cc.
|
private |
Definition at line 92 of file mirrorcontrol_p.h.
|
private |
Definition at line 93 of file mirrorcontrol_p.h.
|
private |
Definition at line 94 of file mirrorcontrol_p.h.
|
private |
Definition at line 96 of file mirrorcontrol_p.h.
|
private |
Definition at line 98 of file mirrorcontrol_p.h.
|
private |
Definition at line 99 of file mirrorcontrol_p.h.