collects information about ICAP processing related to an HTTP transaction More...

#include <History.h>

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

Public Types

typedef RefCount< HistoryPointer
 

Public Member Functions

 History ()
 
void start (const char *context)
 record the start of an ICAP processing interval More...
 
void stop (const char *context)
 note the end of an ICAP processing interval More...
 
void processingTime (struct timeval &total) const
 

Public Attributes

String rfc931
 the username from ident More...
 
String ssluser
 the username from SSL More...
 
LogTags logType
 the squid request status (TCP_MISS etc) More...
 
String log_uri
 the request uri More...
 
size_t req_sz
 the request size More...
 

Private Member Functions

void currentTime (struct timeval &) const
 time since current start or zero More...
 

Private Attributes

timeval currentStart
 when the current processing interval started More...
 
struct timeval pastTime
 sum of closed processing interval durations More...
 
int concurrencyLevel
 number of concurrent processing threads More...
 

Detailed Description

Definition at line 23 of file History.h.

Member Typedef Documentation

Definition at line 26 of file History.h.

Constructor & Destructor Documentation

Adaptation::Icap::History::History ( )

Definition at line 15 of file History.cc.

References currentStart, and pastTime.

Member Function Documentation

void Adaptation::Icap::History::currentTime ( struct timeval &  current) const
private

Definition at line 58 of file History.cc.

References current_time, and tvSub().

void Adaptation::Icap::History::processingTime ( struct timeval &  total) const

the total time of all ICAP processing intervals

Parameters
[out]totaltime taken for all ICAP processing

Definition at line 50 of file History.cc.

References debugs, HERE(), tvAssignAdd(), and tvToMsec().

void Adaptation::Icap::History::start ( const char *  context)

Definition at line 24 of file History.cc.

References current_time, debugs, HERE(), and tvToMsec().

Referenced by Adaptation::Icap::ModXactLauncher::updateHistory().

void Adaptation::Icap::History::stop ( const char *  context)

Member Data Documentation

int Adaptation::Icap::History::concurrencyLevel
private

Definition at line 53 of file History.h.

timeval Adaptation::Icap::History::currentStart
private

Definition at line 51 of file History.h.

Referenced by History().

String Adaptation::Icap::History::log_uri

Definition at line 45 of file History.h.

Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().

LogTags Adaptation::Icap::History::logType

Definition at line 43 of file History.h.

Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().

struct timeval Adaptation::Icap::History::pastTime
private

Definition at line 52 of file History.h.

Referenced by History().

size_t Adaptation::Icap::History::req_sz

Definition at line 46 of file History.h.

String Adaptation::Icap::History::rfc931

Definition at line 39 of file History.h.

Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().

String Adaptation::Icap::History::ssluser

Definition at line 41 of file History.h.

Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors