collects information about adaptations related to a master transaction More...

#include <History.h>

Inheritance diagram for Adaptation::History:
Collaboration diagram for Adaptation::History:


class  Entry
 single Xaction stats (i.e., a historical record entry) More...

Public Types

typedef RefCount
< Adaptation::History
typedef std::vector< SBufAdaptationServices

Public Member Functions

 History ()
int recordXactStart (const String &serviceId, const timeval &when, bool retrying)
 record the start of a xact, return xact history ID More...
void recordXactFinish (int hid)
 record the end of a xact identified by its history ID More...
void allLogString (const char *serviceId, SBuf &)
 dump individual xaction times to a string More...
void sumLogString (const char *serviceId, SBuf &)
 dump xaction times, merging retried and retry times together More...
void updateXxRecord (const char *name, const String &value)
 sets or resets a cross-transactional database record More...
bool getXxRecord (String &name, String &value) const
 returns true and fills the record fields iff there is a db record More...
void updateNextServices (const String &services)
 sets or resets next services for the Adaptation::Iterator to notice More...
bool extractNextServices (String &value)
 returns true, fills the value, and resets iff next services were set More...
void recordMeta (const HttpHeader *lm)
 store the last meta header fields received from the adaptation service More...
void recordAdaptationService (SBuf &srvId)
void setFutureServices (const DynamicGroupCfg &services)
 sets future services for the Adaptation::AccessCheck to notice More...
bool extractFutureServices (DynamicGroupCfg &services)
 returns true, fills the value, and resets iff future services were set More...

Public Attributes

HttpHeader lastMeta
 Last received meta header (REQMOD or RESPMOD, whichever comes last). More...
HttpHeader allMeta
 All REQMOD and RESPMOD meta headers merged. Last field wins conflicts. More...
NotePairs::Pointer metaHeaders
AdaptationServices theAdaptationServices
 The service groups used. More...

Private Types

typedef std::vector< EntryEntries

Private Attributes

Entries theEntries
 historical record, in the order of xact starts More...
String theXxName
 name part of the cross-transactional database record More...
String theXxValue
 value part of the cross-xactional database record More...
String theNextServices
 services Adaptation::Iterator must use next More...
DynamicGroupCfg theFutureServices
 services AccessCheck must use More...

Detailed Description

Definition at line 23 of file History.h.

Member Typedef Documentation

Definition at line 97 of file History.h.

Constructor & Destructor Documentation

Adaptation::History::History ( )

Definition at line 43 of file

Member Function Documentation

void Adaptation::History::allLogString ( const char *  serviceId,
SBuf s 

Definition at line 66 of file

References SBuf::append(), SBuf::appendf(), SBuf::clear(), i, and SBuf::isEmpty().

Referenced by Format::Format::assemble().

bool Adaptation::History::extractFutureServices ( DynamicGroupCfg services)
bool Adaptation::History::extractNextServices ( String value)

Definition at line 129 of file

References TheNullServices.

Referenced by Adaptation::Iterator::updatePlan().

bool Adaptation::History::getXxRecord ( String name,
String value 
) const
void Adaptation::History::recordAdaptationService ( SBuf srvId)

Definition at line 149 of file

Referenced by Adaptation::Iterator::start(), and Adaptation::Iterator::step().

void Adaptation::History::recordMeta ( const HttpHeader lm)
void Adaptation::History::recordXactFinish ( int  hid)

Definition at line 60 of file

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 
void Adaptation::History::setFutureServices ( const DynamicGroupCfg services)

Definition at line 155 of file

References debugs, and HERE().

Referenced by Adaptation::Iterator::updatePlan().

void Adaptation::History::sumLogString ( const char *  serviceId,
SBuf s 

Definition at line 82 of file

References SBuf::append(), SBuf::appendf(), SBuf::clear(), i, SBuf::isEmpty(), and Must.

Referenced by Format::Format::assemble().

void Adaptation::History::updateNextServices ( const String services)
void Adaptation::History::updateXxRecord ( const char *  name,
const String value 

Member Data Documentation

HttpHeader Adaptation::History::allMeta

Definition at line 62 of file History.h.

Referenced by Format::Format::assemble(), and Ftp::Server::writeErrorReply().

HttpHeader Adaptation::History::lastMeta

Definition at line 60 of file History.h.

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 65 of file History.h.

Referenced by Format::Format::assemble(), Adaptation::Icap::ModXact::makeRequestHeaders(), ACLNoteStrategy::match(), and Adaptation::Ecap::XactionRep::start().

AdaptationServices Adaptation::History::theAdaptationServices

Definition at line 68 of file History.h.

Referenced by ACLAdaptationServiceStrategy::match().

Entries Adaptation::History::theEntries

Definition at line 98 of file History.h.

DynamicGroupCfg Adaptation::History::theFutureServices

Definition at line 105 of file History.h.

String Adaptation::History::theNextServices

Definition at line 104 of file History.h.

String Adaptation::History::theXxName

Definition at line 101 of file History.h.

String Adaptation::History::theXxValue

Definition at line 102 of file History.h.

The documentation for this class was generated from the following files:






Web Site Translations