|
Squid Web Cache master
|
collects information about adaptations related to a master transaction More...
#include <History.h>
Classes | |
| class | Entry |
| single Xaction stats (i.e., a historical record entry) More... | |
Public Types | |
| typedef RefCount< Adaptation::History > | Pointer |
| typedef std::vector< SBuf > | AdaptationServices |
Public Member Functions | |
| History () | |
| int | recordXactStart (const String &serviceId, const timeval &when, bool retrying) |
| record the start of a xact, return xact history ID | |
| void | recordXactFinish (int hid) |
| record the end of a xact identified by its history ID | |
| void | allLogString (const char *serviceId, SBuf &) |
| dump individual xaction times to a string | |
| void | sumLogString (const char *serviceId, SBuf &) |
| dump xaction times, merging retried and retry times together | |
| void | updateXxRecord (const char *name, const String &value) |
| sets or resets a cross-transactional database record | |
| bool | getXxRecord (String &name, String &value) const |
| returns true and fills the record fields iff there is a db record | |
| void | updateNextServices (const String &services) |
| sets or resets next services for the Adaptation::Iterator to notice | |
| bool | extractNextServices (String &value) |
| returns true, fills the value, and resets iff next services were set | |
| void | recordMeta (const HttpHeader *lm) |
| store the last meta header fields received from the adaptation service | |
| void | recordAdaptationService (SBuf &srvId) |
| void | setFutureServices (const DynamicGroupCfg &services) |
| sets future services for the Adaptation::AccessCheck to notice | |
| DynamicGroupCfg | extractCurrentServices (const ServiceFilter &) |
| returns and forgets planned/future services matching the given filter | |
Public Attributes | |
| HttpHeader | lastMeta |
| Last received meta header (REQMOD or RESPMOD, whichever comes last). | |
| HttpHeader | allMeta |
| All REQMOD and RESPMOD meta headers merged. Last field wins conflicts. | |
| NotePairs::Pointer | metaHeaders |
| AdaptationServices | theAdaptationServices |
| The service groups used. | |
Private Types | |
| typedef std::vector< Entry > | Entries |
Private Attributes | |
| Entries | theEntries |
| historical record, in the order of xact starts | |
| String | theXxName |
| name part of the cross-transactional database record | |
| String | theXxValue |
| value part of the cross-xactional database record | |
| String | theNextServices |
| services Adaptation::Iterator must use next | |
| DynamicGroupCfg | theFutureServices |
| services AccessCheck must use | |
| typedef std::vector<SBuf> Adaptation::History::AdaptationServices |
|
private |
| Adaptation::History::History | ( | ) |
Definition at line 44 of file History.cc.
| void Adaptation::History::allLogString | ( | const char * | serviceId, |
| SBuf & | s | ||
| ) |
Definition at line 67 of file History.cc.
References SBuf::append(), SBuf::appendf(), SBuf::clear(), and SBuf::isEmpty().
Referenced by Format::Format::assemble().
| Adaptation::DynamicGroupCfg Adaptation::History::extractCurrentServices | ( | const ServiceFilter & | filter | ) |
Definition at line 165 of file History.cc.
References Adaptation::DynamicServiceChain::Split().
Referenced by Adaptation::AccessCheck::usedDynamicRules().
| bool Adaptation::History::extractNextServices | ( | String & | value | ) |
Definition at line 130 of file History.cc.
References TheNullServices.
Referenced by Adaptation::Iterator::updatePlan().
Definition at line 111 of file History.cc.
Referenced by Adaptation::Icap::ModXact::makeRequestHeaders(), and Adaptation::Ecap::XactionRep::masterxSharedValue().
| void Adaptation::History::recordAdaptationService | ( | SBuf & | srvId | ) |
Definition at line 150 of file History.cc.
Referenced by Adaptation::Iterator::start(), and Adaptation::Iterator::step().
| void Adaptation::History::recordMeta | ( | const HttpHeader * | lm | ) |
Definition at line 140 of file History.cc.
References String::clean().
Referenced by Adaptation::Icap::ModXact::parseIcapHead(), and Adaptation::Ecap::XactionRep::updateHistory().
| void Adaptation::History::recordXactFinish | ( | int | hid | ) |
Definition at line 61 of file History.cc.
References Must.
Referenced by Adaptation::Ecap::XactionRep::swanSong(), and Adaptation::Icap::ModXact::swanSong().
| int Adaptation::History::recordXactStart | ( | const String & | serviceId, |
| const timeval & | when, | ||
| bool | retrying | ||
| ) |
Definition at line 51 of file History.cc.
References String::size().
Referenced by Adaptation::Ecap::XactionRep::start(), and Adaptation::Icap::ModXact::start().
| void Adaptation::History::setFutureServices | ( | const DynamicGroupCfg & | services | ) |
Definition at line 156 of file History.cc.
References debugs.
Referenced by Adaptation::Iterator::updatePlan().
| void Adaptation::History::sumLogString | ( | const char * | serviceId, |
| SBuf & | s | ||
| ) |
Definition at line 83 of file History.cc.
References SBuf::append(), SBuf::appendf(), SBuf::clear(), SBuf::isEmpty(), and Must.
Referenced by Format::Format::assemble().
| void Adaptation::History::updateNextServices | ( | const String & | services | ) |
Definition at line 121 of file History.cc.
References debugs, Must, and TheNullServices.
Referenced by Adaptation::Icap::ModXact::parseIcapHead(), and Adaptation::Ecap::XactionRep::updateHistory().
| void Adaptation::History::updateXxRecord | ( | const char * | name, |
| const String & | value | ||
| ) |
Definition at line 105 of file History.cc.
Referenced by Adaptation::Icap::ModXact::parseIcapHead(), and Adaptation::Ecap::XactionRep::updateHistory().
| HttpHeader Adaptation::History::allMeta |
Definition at line 63 of file History.h.
Referenced by Format::Format::assemble(), and Ftp::Server::writeErrorReply().
| HttpHeader Adaptation::History::lastMeta |
Definition at line 61 of file History.h.
Referenced by prepareLogWithRequestDetails().
| NotePairs::Pointer Adaptation::History::metaHeaders |
key:value pairs set by adaptation_meta, to be added to AccessLogEntry::notes when ALE becomes available
Definition at line 66 of file History.h.
Referenced by Format::Format::assemble(), Adaptation::Icap::ModXact::makeRequestHeaders(), Acl::NoteCheck::match(), and Adaptation::Ecap::XactionRep::start().
| AdaptationServices Adaptation::History::theAdaptationServices |
Definition at line 69 of file History.h.
Referenced by Acl::AdaptationServiceCheck::match().
|
private |