|
Squid Web Cache master
|
#include <PeerDigest.h>
Public Member Functions | |
| CBDATA_DECL_ (PeerDigest, noexcept) | |
| PeerDigest (CachePeer *) | |
| ~PeerDigest () | |
| void | noteFetchFinished (const DigestFetchState &, const char *outcomeDescription, bool sawError) |
Public Attributes | ||
| CbcPointer< CachePeer > | peer | |
| pointer back to peer structure, argh | ||
| CacheDigest * | cd = nullptr | |
| const SBuf | host | |
| copy of peer->host | ||
| const char * | req_result = nullptr | |
| struct { | ||
| bool needed = false | ||
| bool usable = false | ||
| bool requested = false | ||
| } | flags | |
| struct { | ||
| time_t initialized = 0 | ||
| time_t needed = 0 | ||
| time_t next_check = 0 | ||
| time_t retry_delay = 0 | ||
| time_t requested = 0 | ||
| time_t req_delay = 0 | ||
| time_t received = 0 | ||
| time_t disabled = 0 | ||
| } | times | |
| struct { | ||
| CacheDigestGuessStats guess | ||
| int used_count = 0 | ||
| struct { | ||
| int msgs = 0 | ||
| ByteCounter kbytes | ||
| } sent | ||
| struct { | ||
| int msgs = 0 | ||
| ByteCounter kbytes | ||
| } recv | ||
| } | stats | |
Definition at line 74 of file PeerDigest.h.
| PeerDigest::PeerDigest | ( | CachePeer * | p | ) |
Definition at line 64 of file peer_digest.cc.
References squid_curtime, and times.
| PeerDigest::~PeerDigest | ( | ) |
Definition at line 120 of file peer_digest.cc.
References cd, eventDelete(), eventFind(), peerDigestCheck, and times.
| PeerDigest::CBDATA_DECL_ | ( | PeerDigest | , |
| noexcept | |||
| ) |
| void PeerDigest::noteFetchFinished | ( | const DigestFetchState & | finishedFetch, |
| const char * | outcomeDescription, | ||
| bool | sawError | ||
| ) |
reacts to digest transfer completion \prec DigestFetchState stats were finalized (by calling peerDigestFetchSetStats())
Definition at line 653 of file peer_digest.cc.
References DBG_IMPORTANT, debugs, host, peerDigestIncDelay(), peerDigestNewDelay(), peerDigestSetCheck(), DigestFetchState::resp_time, squid_curtime, and STORE_OK.
| CacheDigest* PeerDigest::cd = nullptr |
actual digest structure
Definition at line 87 of file PeerDigest.h.
Referenced by ~PeerDigest(), peerDigestFetchReply(), peerDigestLookup(), peerDigestNeeded(), peerDigestSetCBlock(), peerDigestStatsReport(), and peerDigestUseful().
| time_t PeerDigest::disabled = 0 |
Definition at line 106 of file PeerDigest.h.
| struct { ... } PeerDigest::flags |
Referenced by peerDigestCheck(), peerDigestLookup(), peerDigestNeeded(), and peerDigestRequest().
| CacheDigestGuessStats PeerDigest::guess |
Definition at line 110 of file PeerDigest.h.
Referenced by peerDigestStatsReport().
| const SBuf PeerDigest::host |
Definition at line 88 of file PeerDigest.h.
Referenced by noteFetchFinished(), peerDigestCheck(), peerDigestSetCBlock(), peerDigestSetCheck(), peerDigestStatsReport(), and peerDigestUseful().
| time_t PeerDigest::initialized = 0 |
Definition at line 99 of file PeerDigest.h.
| ByteCounter PeerDigest::kbytes |
Definition at line 115 of file PeerDigest.h.
Referenced by peerDigestStatsReport().
| int PeerDigest::msgs = 0 |
Definition at line 114 of file PeerDigest.h.
Referenced by peerDigestStatsReport().
| bool PeerDigest::needed = false |
there were requests for this digest
Definition at line 92 of file PeerDigest.h.
Referenced by peerDigestLookup(), and peerDigestNeeded().
| time_t PeerDigest::needed = 0 |
Definition at line 100 of file PeerDigest.h.
| time_t PeerDigest::next_check = 0 |
Definition at line 101 of file PeerDigest.h.
Referenced by peerDigestCheck(), and peerDigestSetCheck().
| CbcPointer<CachePeer> PeerDigest::peer |
Definition at line 86 of file PeerDigest.h.
Referenced by finishAndDeleteFetch(), peerDigestCheck(), and peerDigestRequest().
| time_t PeerDigest::received = 0 |
Definition at line 105 of file PeerDigest.h.
Referenced by peerDigestCheck().
| struct { ... } PeerDigest::recv |
Referenced by peerDigestStatsReport().
| time_t PeerDigest::req_delay = 0 |
Definition at line 104 of file PeerDigest.h.
Referenced by peerDigestStatsReport().
| const char* PeerDigest::req_result = nullptr |
text status of the last request
Definition at line 89 of file PeerDigest.h.
Referenced by peerDigestRequest(), and peerDigestStatsReport().
| bool PeerDigest::requested = false |
in process of receiving [fresh] digest
Definition at line 94 of file PeerDigest.h.
Referenced by peerDigestCheck(), peerDigestLookup(), and peerDigestRequest().
| time_t PeerDigest::requested = 0 |
Definition at line 103 of file PeerDigest.h.
| time_t PeerDigest::retry_delay = 0 |
Definition at line 102 of file PeerDigest.h.
Referenced by peerDigestIncDelay(), and peerDigestStatsReport().
| struct { ... } PeerDigest::sent |
Referenced by peerDigestStatsReport().
| struct { ... } PeerDigest::stats |
Referenced by peerDigestStatsReport().
| struct { ... } PeerDigest::times |
| bool PeerDigest::usable = false |
can be used for lookups
Definition at line 93 of file PeerDigest.h.
Referenced by peerDigestLookup().
| int PeerDigest::used_count = 0 |
Definition at line 111 of file PeerDigest.h.