#include "base/forward.h"
#include "CachePeer.h"
#include "mem/PoolingAllocator.h"
#include <memory>
#include <vector>
Go to the source code of this file.
Classes | |
class | CachePeers |
cache_peer configuration storage More... | |
Typedefs | |
using | SelectedCachePeers = std::vector< CbcPointer< CachePeer >, PoolingAllocator< CbcPointer< CachePeer > > > |
using | RawCachePeers = std::vector< CachePeer *, PoolingAllocator< CachePeer * > > |
Temporary, local storage of raw pointers to zero or more Config.peers. More... | |
Functions | |
const CachePeers & | CurrentCachePeers () |
void | DeleteConfigured (CachePeer *) |
destroys the given peer after removing it from the set of configured peers More... | |
Typedef Documentation
◆ RawCachePeers
using RawCachePeers = std::vector<CachePeer *, PoolingAllocator<CachePeer*> > |
Definition at line 66 of file CachePeers.h.
◆ SelectedCachePeers
using SelectedCachePeers = std::vector< CbcPointer<CachePeer>, PoolingAllocator< CbcPointer<CachePeer> > > |
Weak pointers to zero or more Config.peers. Users must specify the selection algorithm and the order of entries.
Definition at line 63 of file CachePeers.h.
Function Documentation
◆ CurrentCachePeers()
const CachePeers & CurrentCachePeers | ( | ) |
All configured cache_peers that are still available/relevant.
- Returns
- an empty container if no cache_peers were configured or all configured cache_peers were removed (e.g., by DeleteConfigured()).
Definition at line 41 of file CachePeers.cc.
References Config, and SquidConfig::peers.
Referenced by carpInit(), configDoConfigure(), findCachePeerByName(), findUsableParentAtHostname(), getDefaultParent(), getFirstUpParent(), getRoundRobinParent(), getWeightedRoundRobinParent(), htcpForwardClr(), neighbors_init(), neighborsCount(), neighborsHtcpClear(), peer_Inst(), peerClearRR(), peerRefreshDNS(), peerSourceHashInit(), peerUserHashInit(), PeerSelector::selectAllParents(), snmp_meshPtblFn(), statPeerSelect(), PeerPoolMgrsRr::syncConfig(), and whichPeer().
◆ DeleteConfigured()
void DeleteConfigured | ( | CachePeer * | peer | ) |
Definition at line 51 of file CachePeers.cc.
References Assure, Config, SquidConfig::peers, and CachePeers::remove().
Referenced by neighbors_init(), and neighborsUdpAck().