Store.h File Reference
#include "base/DelayedAsyncCalls.h"
#include "base/Packable.h"
#include "base/Range.h"
#include "base/RefCount.h"
#include "comm/forward.h"
#include "hash.h"
#include "http/forward.h"
#include "http/RequestMethod.h"
#include "HttpReply.h"
#include "MemObject.h"
#include "RemovalPolicy.h"
#include "store/Controller.h"
#include "store/forward.h"
#include "store_key_md5.h"
#include "StoreIOBuffer.h"
#include "StoreStats.h"
#include "esi/Element.h"
#include <ostream>
Include dependency graph for Store.h:

Go to the source code of this file.

Classes

class  StoreEntry
 
class  Store::EntryGuard
 

Namespaces

namespace  Store
 

Typedefs

typedef void(* STOREGETCLIENT) (StoreEntry *, void *cbdata)
 

Functions

std::ostream & operator<< (std::ostream &os, const StoreEntry &e)
 
void Store::Stats (StoreEntry *output)
 
void Store::Maintain (void *unused)
 
size_t storeEntryInUse ()
 
const char * storeEntryFlags (const StoreEntry *)
 
void storeEntryReplaceObject (StoreEntry *, HttpReply *)
 
StoreEntrystoreGetPublic (const char *uri, const HttpRequestMethod &method)
 
StoreEntrystoreGetPublicByRequest (HttpRequest *request, const KeyScope keyScope=ksDefault)
 
StoreEntrystoreGetPublicByRequestMethod (HttpRequest *request, const HttpRequestMethod &method, const KeyScope keyScope=ksDefault)
 
StoreEntrystoreCreateEntry (const char *, const char *, const RequestFlags &, const HttpRequestMethod &)
 
StoreEntrystoreCreatePureEntry (const char *storeId, const char *logUrl, const HttpRequestMethod &)
 
void storeInit (void)
 
void storeConfigure (void)
 
int expiresMoreThan (time_t, time_t)
 
void storeAppendPrintf (StoreEntry *, const char *,...) PRINTF_FORMAT_ARG2
 
void storeAppendVPrintf (StoreEntry *, const char *, va_list ap)
 
int storeTooManyDiskFilesOpen (void)
 
void storeHeapPositionUpdate (StoreEntry *, SwapDir *)
 
void storeSwapFileNumberSet (StoreEntry *e, sfileno filn)
 
void storeFsInit (void)
 
void storeFsDone (void)
 
void storeReplAdd (const char *, REMOVALPOLICYCREATE *)
 
void storeGetMemSpace (int size)
 

Variables

StoreIoStats store_io_stats
 
FREE destroyStoreEntry
 

Typedef Documentation

◆ STOREGETCLIENT

typedef void(* STOREGETCLIENT) (StoreEntry *, void *cbdata)

Definition at line 347 of file Store.h.

Function Documentation

◆ expiresMoreThan()

int expiresMoreThan ( time_t  expires,
time_t  when 
)

Definition at line 1324 of file store.cc.

References squid_curtime.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const StoreEntry e 
)

Definition at line 341 of file store.cc.

References debugs.

◆ storeAppendPrintf()

void storeAppendPrintf ( StoreEntry e,
const char *  fmt,
  ... 
)

Definition at line 841 of file store.cc.

References StoreEntry::vappendf().

Referenced by DiskThreadsIOStrategy::aioStats(), asnStats(), cacheDigestGuessStatsReport(), cacheDigestReport(), carpCachemgr(), clientdbDump(), commIncomingStats(), Auth::User::CredentialsCacheStats(), Store::Disks::Dump(), Fs::Ufs::UFSSwapDir::dump(), Ipc::ReadWriteLockStats::dump(), DelaySpec::dump(), Auth::SchemeConfig::dump(), DelayPool::dump(), MessageDelayPool::dump(), DiskdAction::dump(), Mgr::MenuAction::dump(), Mgr::ReconfigureAction::dump(), Mgr::RotateAction::dump(), Mgr::OfflineToggleAction::dump(), Mgr::FunAction::dump(), Mgr::InfoAction::dump(), Mgr::StoreIoAction::dump(), Format::Format::dump(), Note::dump(), ClientDelayPool::dump(), dump_access_log(), dump_acl(), dump_acl_address(), dump_acl_b_size_t(), dump_acl_tos(), dump_address(), dump_b_int64_t(), dump_b_size_t(), dump_b_ssize_t(), dump_cachemgrpasswd(), dump_CpuAffinityMap(), dump_denyinfo(), dump_externalAclHelper(), dump_generic_port(), dump_HeaderWithAclList(), dump_icap_service_failure_limit(), dump_int(), dump_int64_t(), dump_IpAddress_list(), dump_kb_int64_t(), dump_memcachemode(), dump_onoff(), dump_peer(), dump_peers(), dump_PortCfg(), dump_refreshpattern(), dump_removalpolicy(), dump_sslproxy_cert_adapt(), dump_sslproxy_cert_sign(), dump_string(), dump_time_nanoseconds(), dump_tristate(), dump_u_short(), dump_uri_whitespace(), dump_UrlHelperTimeout(), dump_wccp2_amethod(), dump_wccp2_method(), dump_wccp2_service(), dump_wccp2_service_info(), dump_wordlist(), DumpAvgStat(), DumpCountersStats(), PconnPool::dumpHash(), PconnPool::dumpHist(), DumpInfo(), DumpIoStats(), DumpMallocStatistics(), ClientDelayConfig::dumpPoolCount(), DelayConfig::dumpPoolCount(), Rock::SwapDir::dumpRateOption(), Adaptation::Config::dumpService(), Adaptation::Config::DumpServiceGroups(), DumpServiceTimesStats(), Rock::SwapDir::dumpSizeOption(), fde::dumpStats(), fde::DumpStats(), Rock::SwapDir::dumpTimeOption(), externalAclStats(), fqdnStats(), fwdStats(), header_mangler_dump_access(), header_mangler_dump_replacement(), httpHdrCcStatDumper(), httpHdrScStatDumper(), httpHdrScTargetStatDumper(), httpHeaderFieldStatDumper(), httpHeaderFldsPerHdrDumper(), httpHeaderStatDump(), httpHeaderStoreReport(), idnsStats(), ipcacheStatPrint(), lru_stats(), netdbBinaryExchange(), netdbDump(), Fs::Ufs::UFSSwapDir::optionIODump(), Store::Disk::optionObjectSizeDump(), DiskdIOStrategy::optionQ1Dump(), DiskdIOStrategy::optionQ2Dump(), Store::Disk::optionReadOnlyDump(), peerDigestStatsReport(), peerSourceHashCachemgr(), peerUserHashCachemgr(), printRadixNode(), redirectStats(), refreshCountsStats(), refreshCountsStatsEntry(), refreshStats(), squidaio_stats(), Store::Controller::stat(), Store::Disk::stat(), Store::Disks::stat(), MemStore::stat(), Transients::stat(), stat_ipcache_get(), statClientRequests(), statCountersHistograms(), statDigestBlob(), Fs::Ufs::UFSSwapDir::statfs(), Rock::SwapDir::statfs(), DiskdIOStrategy::statfs(), statHistBinDumper(), statHistEnumDumper(), statHistIntDumper(), statHistSBufDumper(), statObjects(), statPeerSelect(), DelayPools::Stats(), ClassCBucket::stats(), DelayBucket::stats(), DelayTaggedBucket::stats(), DelayUserBucket::stats(), Aggregate::stats(), VectorPool::stats(), ClassCHostPool::stats(), DelayTagged::stats(), DelayUser::stats(), DelaySpec::stats(), statUtilization(), storeCheckCachableStats(), storeDigestReport(), storeIdStats(), and storeLogTagsHist().

◆ storeAppendVPrintf()

void storeAppendVPrintf ( StoreEntry e,
const char *  fmt,
va_list  ap 
)

Definition at line 851 of file store.cc.

References StoreEntry::vappendf().

◆ storeConfigure()

void storeConfigure ( void  )

Definition at line 1256 of file store.cc.

References Store::Controller::configure(), and Store::Root().

Referenced by configDoConfigure(), and storeSwapOutFileClosed().

◆ storeCreateEntry()

◆ storeCreatePureEntry()

StoreEntry * storeCreatePureEntry ( const char *  storeId,
const char *  logUrl,
const HttpRequestMethod method 
)

◆ storeEntryFlags()

◆ storeEntryInUse()

size_t storeEntryInUse ( )

◆ storeEntryReplaceObject()

void storeEntryReplaceObject ( StoreEntry ,
HttpReply  
)

◆ storeFsDone()

void storeFsDone ( void  )

◆ storeFsInit()

void storeFsInit ( void  )

Definition at line 1622 of file store.cc.

References storeReplSetup().

Referenced by SquidMain().

◆ storeGetMemSpace()

void storeGetMemSpace ( int  size)

Clear Memory storage to accommodate the given object len

Definition at line 1107 of file store.cc.

References Store::Controller::freeMemorySpace(), Store::Root(), and size.

Referenced by store_client::maybeWriteFromDiskToMemory(), and StoreEntry::write().

◆ storeGetPublic()

◆ storeGetPublicByRequest()

◆ storeGetPublicByRequestMethod()

StoreEntry * storeGetPublicByRequestMethod ( HttpRequest request,
const HttpRequestMethod method,
const KeyScope  keyScope = ksDefault 
)

◆ storeHeapPositionUpdate()

void storeHeapPositionUpdate ( StoreEntry ,
SwapDir  
)

◆ storeInit()

◆ storeReplAdd()

void storeReplAdd ( const char *  type,
REMOVALPOLICYCREATE create 
)

◆ storeSwapFileNumberSet()

void storeSwapFileNumberSet ( StoreEntry e,
sfileno  filn 
)

◆ storeTooManyDiskFilesOpen()

int storeTooManyDiskFilesOpen ( void  )

Variable Documentation

◆ destroyStoreEntry

FREE destroyStoreEntry
extern

One of the three methods to get rid of an unlocked StoreEntry object. This low-level method ignores lock()ing and release() promises. It never leaves the entry in the local store_table. TODO: Hide by moving its functionality into the StoreEntry destructor.

Referenced by Store::Controller::~Controller(), MemStore::get(), and Store::Controller::handleIdleEntry().

◆ store_io_stats

StoreIoStats store_io_stats
extern

Definition at line 16 of file store_io.cc.

Referenced by Mgr::StoreIoAction::collect(), and storeCreate().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors