9#ifndef SQUID_SRC_ADAPTATION_HISTORY_H
10#define SQUID_SRC_ADAPTATION_HISTORY_H
82 Entry(
const String &serviceId,
const timeval &when);
#define RefCountable
The locking interface for use on Reference-Counted classes.
DynamicServiceGroup configuration to remember future dynamic chains.
single Xaction stats (i.e., a historical record entry)
timeval start
when the xaction was started
String service
adaptation service ID
bool retried
whether the xaction was replaced by another
int theRptm
calculated and cached response time value in msec
void stop()
updates stats on transaction end
int rptm()
returns response time [msec], calculates it if needed
collects information about adaptations related to a master transaction
void sumLogString(const char *serviceId, SBuf &)
dump xaction times, merging retried and retry times together
bool extractNextServices(String &value)
returns true, fills the value, and resets iff next services were set
String theXxName
name part of the cross-transactional database record
DynamicGroupCfg theFutureServices
services AccessCheck must use
Entries theEntries
historical record, in the order of xact starts
String theNextServices
services Adaptation::Iterator must use next
String theXxValue
value part of the cross-xactional database record
DynamicGroupCfg extractCurrentServices(const ServiceFilter &)
returns and forgets planned/future services matching the given filter
int recordXactStart(const String &serviceId, const timeval &when, bool retrying)
record the start of a xact, return xact history ID
void updateXxRecord(const char *name, const String &value)
sets or resets a cross-transactional database record
void setFutureServices(const DynamicGroupCfg &services)
sets future services for the Adaptation::AccessCheck to notice
NotePairs::Pointer metaHeaders
HttpHeader allMeta
All REQMOD and RESPMOD meta headers merged. Last field wins conflicts.
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
std::vector< Entry > Entries
void recordAdaptationService(SBuf &srvId)
RefCount< Adaptation::History > Pointer
void recordMeta(const HttpHeader *lm)
store the last meta header fields received from the adaptation service
HttpHeader lastMeta
Last received meta header (REQMOD or RESPMOD, whichever comes last).
std::vector< SBuf > AdaptationServices
void allLogString(const char *serviceId, SBuf &)
dump individual xaction times to a string
void recordXactFinish(int hid)
record the end of a xact identified by its history ID
AdaptationServices theAdaptationServices
The service groups used.
information used to search for adaptation services