Squid Web Cache master
Loading...
Searching...
No Matches
Adaptation::History::Entry Class Reference

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

Collaboration diagram for Adaptation::History::Entry:
[legend]

Public Member Functions

 Entry (const String &serviceId, const timeval &when)
 
 Entry ()
 
void stop ()
 updates stats on transaction end
 
int rptm ()
 returns response time [msec], calculates it if needed
 

Public Attributes

String service
 adaptation service ID
 
timeval start
 when the xaction was started
 
bool retried
 whether the xaction was replaced by another
 

Private Attributes

int theRptm
 calculated and cached response time value in msec
 

Detailed Description

Definition at line 79 of file History.h.

Constructor & Destructor Documentation

◆ Entry() [1/2]

Adaptation::History::Entry::Entry ( const String serviceId,
const timeval &  when 
)

Definition at line 21 of file History.cc.

◆ Entry() [2/2]

Adaptation::History::Entry::Entry ( )

Definition at line 26 of file History.cc.

Member Function Documentation

◆ rptm()

int Adaptation::History::Entry::rptm ( )

Definition at line 37 of file History.cc.

References current_time, and tvSubMsec().

◆ stop()

void Adaptation::History::Entry::stop ( )

Definition at line 31 of file History.cc.

Member Data Documentation

◆ retried

bool Adaptation::History::Entry::retried

Definition at line 95 of file History.h.

◆ service

String Adaptation::History::Entry::service

Definition at line 88 of file History.h.

◆ start

timeval Adaptation::History::Entry::start

Definition at line 89 of file History.h.

◆ theRptm

int Adaptation::History::Entry::theRptm
private

Definition at line 92 of file History.h.


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