|
Squid Web Cache master
|
cache_peer configuration storage More...
#include <CachePeers.h>
Public Types | |
| using | Storage = std::vector< std::unique_ptr< CachePeer >, PoolingAllocator< std::unique_ptr< CachePeer > > > |
| owns stored CachePeer objects | |
| using | const_iterator = Storage::const_iterator |
Public Member Functions | |
| void | add (CachePeer *p) |
| stores a being-configured cache_peer | |
| void | remove (CachePeer *) |
| deletes a previously add()ed CachePeer object | |
| auto | size () const |
| the number of currently stored (i.e. added and not removed) cache_peers | |
| auto | begin () const |
| auto | end () const |
| CachePeer & | nextPeerToPing (size_t iteration) |
Private Attributes | |
| Storage | storage |
| cache_peers in configuration/parsing order | |
| uint64_t | peerPolls_ = 0 |
| total number of completed peer scans by nextPeerToPing()-calling code | |
Definition at line 20 of file CachePeers.h.
| using CachePeers::const_iterator = Storage::const_iterator |
Definition at line 36 of file CachePeers.h.
| using CachePeers::Storage = std::vector< std::unique_ptr<CachePeer>, PoolingAllocator< std::unique_ptr<CachePeer> > > |
Definition at line 24 of file CachePeers.h.
|
inline |
|
inline |
Definition at line 37 of file CachePeers.h.
References storage.
|
inline |
Definition at line 38 of file CachePeers.h.
References storage.
A CachePeer to query next when scanning all peer caches in hope to fetch a remote cache hit.
| iteration | a 0-based index of a loop scanning all peers |
Definition at line 16 of file CachePeers.cc.
References Assure, peerPolls_, size(), and storage.
Referenced by neighborsDigestSelect(), and neighborsUdpPing().
| void CachePeers::remove | ( | CachePeer * | peer | ) |
Definition at line 33 of file CachePeers.cc.
References Assure, and storage.
Referenced by DeleteConfigured().
|
inline |
Definition at line 33 of file CachePeers.h.
References storage.
Referenced by neighborsDigestSelect(), neighborsUdpPing(), nextPeerToPing(), and peer_Inst().
|
private |
Definition at line 50 of file CachePeers.h.
Referenced by nextPeerToPing().
|
private |
Definition at line 47 of file CachePeers.h.
Referenced by add(), begin(), end(), nextPeerToPing(), remove(), and size().