#include <ICP.h>

Inheritance diagram for ICPState:
Collaboration diagram for ICPState:

Public Member Functions

 ICPState (icp_common_t &aHeader, HttpRequest *aRequest)
 
virtual ~ICPState ()
 
virtual void created (StoreEntry *)=0
 

Public Attributes

icp_common_t header
 
HttpRequestrequest
 
int fd
 
Ip::Address from
 
char * url
 

Protected Member Functions

virtual LogTagsloggingTags () override
 
virtual void fillChecklist (ACLFilledChecklist &) const override
 configure the ACL checklist with the current transaction state More...
 
bool confirmAndPrepHit (const StoreEntry &)
 either confirms and starts processing a cache hit or returns false More...
 
bool startCollapsingOn (const StoreEntry &, const bool doingRevalidation)
 
bool mayInitiateCollapsing () const
 whether Squid configuration allows us to become a CF initiator More...
 
bool onCollapsingPath () const
 whether Squid configuration allows collapsing for this transaction More...
 

Protected Attributes

AccessLogEntryPointer al
 

Detailed Description

Todo:
mempool this

Definition at line 64 of file ICP.h.

Constructor & Destructor Documentation

ICPState::ICPState ( icp_common_t aHeader,
HttpRequest aRequest 
)

Definition at line 142 of file icp_v2.cc.

References HTTPMSGLOCK(), and request.

ICPState::~ICPState ( )
virtual

Definition at line 151 of file icp_v2.cc.

References HTTPMSGUNLOCK(), request, safe_free, and url.

Member Function Documentation

virtual void StoreClient::created ( StoreEntry )
pure virtualinherited
void ICPState::fillChecklist ( ACLFilledChecklist checklist) const
overrideprotectedvirtual

Implements StoreClient.

Definition at line 182 of file icp_v2.cc.

References al, ACLFilledChecklist::al, from, icpSyncAle(), request, ACLFilledChecklist::setRequest(), and url.

LogTags * ICPState::loggingTags ( )
overrideprotectedvirtual
Returns
LogTags (if the class logs transactions) or nil (otherwise)

Implements StoreClient.

Definition at line 173 of file icp_v2.cc.

References al, AccessLogEntry::cache, and AccessLogEntry::CacheDetails::code.

bool StoreClient::mayInitiateCollapsing ( ) const
inlineprotectedinherited
bool StoreClient::startCollapsingOn ( const StoreEntry e,
const bool  doingRevalidation 
)
protectedinherited
Returns
whether the caller must collapse on the given entry Before returning true, updates common collapsing-related stats. See also: StoreEntry::hittingRequiresCollapsing().

Definition at line 65 of file store_client.cc.

References debugs, StoreEntry::hittingRequiresCollapsing(), StoreClient::loggingTags(), and StoreClient::onCollapsingPath().

Referenced by confirmAndPrepHit(), UrnState::created(), htcpSpecifier::created(), clientReplyContext::identifyFoundObject(), and clientReplyContext::processExpired().

Member Data Documentation

AccessLogEntryPointer ICPState::al
mutableprotected

Definition at line 86 of file ICP.h.

Referenced by ICP3State::created(), ICP2State::created(), fillChecklist(), and loggingTags().

int ICPState::fd

Definition at line 73 of file ICP.h.

Referenced by ICP3State::created(), ICP2State::created(), doV2Query(), and doV3Query().

Ip::Address ICPState::from

Definition at line 75 of file ICP.h.

Referenced by ICP3State::created(), ICP2State::created(), doV2Query(), doV3Query(), and fillChecklist().

icp_common_t ICPState::header

Definition at line 71 of file ICP.h.

Referenced by ICP3State::created(), and ICP2State::created().

HttpRequest* ICPState::request

Definition at line 72 of file ICP.h.

Referenced by confirmAndPrepHit(), ICP2State::created(), fillChecklist(), ICPState(), and ~ICPState().

char* ICPState::url

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors