Classes | |
class | Controlled |
class | Controller |
class | Disk |
manages a single cache_dir More... | |
class | DiskConfig |
class | Disks |
summary view of all disk caches (cache_dirs) combined More... | |
class | EntryGuard |
class | LocalSearch |
iterates local store_table More... | |
class | Storage |
Typedefs | |
typedef ::StoreEntry | Entry |
typedef ::MemStore | Memory |
typedef ::Transients | Transients |
Enumerations | |
enum | IoStatus { ioUndecided, ioWriting, ioReading, ioDone } |
cache "I/O" direction and status More... | |
Functions | |
Controller & | Root () |
safely access controller singleton More... | |
void | Init (Controller *root=nullptr) |
initialize the storage module; a custom root is used by unit tests only More... | |
void | FreeMemory () |
undo Init() More... | |
StoreSearch * | NewLocalSearch () |
void | Stats (StoreEntry *output) |
void | Maintain (void *unused) |
Variables | |
static RefCount< Controller > | TheRoot |
void Controller::create() STUB void Controller Controller | nil |
Typedef Documentation
◆ Entry
typedef ::StoreEntry Store::Entry |
◆ Memory
typedef ::MemStore Store::Memory |
◆ Transients
typedef ::Transients Store::Transients |
Enumeration Type Documentation
◆ IoStatus
enum Store::IoStatus |
Function Documentation
◆ FreeMemory()
void Store::FreeMemory | ( | ) |
Definition at line 951 of file Controller.cc.
References TheRoot.
Referenced by SquidShutdown(), storeFreeMemory(), testRock::tearDown(), testPackableStream::testGetStream(), testStore::testMaxSize(), testStoreController::testMaxSize(), testStoreHashIndex::testMaxSize(), testStoreController::testSearch(), testStoreHashIndex::testSearch(), testStore::testSetRoot(), testStore::testStats(), testStoreController::testStats(), testStoreHashIndex::testStats(), testUfs::testUfsDefaultEngine(), testUfs::testUfsSearch(), and testStore::testUnsetRoot().
◆ Init()
void Store::Init | ( | Controller * | root = nullptr | ) |
Definition at line 945 of file Controller.cc.
References TheRoot.
Referenced by testRock::setUp(), SquidMain(), testPackableStream::testGetStream(), testStore::testMaxSize(), testStoreController::testMaxSize(), testStoreHashIndex::testMaxSize(), testStoreController::testSearch(), testStoreHashIndex::testSearch(), testStore::testSetRoot(), testStore::testStats(), testStoreController::testStats(), testStoreHashIndex::testStats(), testUfs::testUfsDefaultEngine(), testUfs::testUfsSearch(), and testStore::testUnsetRoot().
◆ Maintain()
void Store::Maintain | ( | void * | unused | ) |
Definition at line 1161 of file store.cc.
References eventAdd(), Store::Controller::maintain(), NULL, and Root().
Referenced by mainInitialize().
◆ NewLocalSearch()
StoreSearch * Store::NewLocalSearch | ( | ) |
Definition at line 44 of file LocalSearch.cc.
Referenced by Store::Controller::search(), and storeDirSwapLog().
◆ Root()
Store::Controller & Store::Root | ( | ) |
Definition at line 938 of file Controller.cc.
References assert, and TheRoot.
Referenced by CollapsedForwarding::Broadcast(), StoreRootEngine::checkEvents(), CheckQuickAbortIsReasonable(), MemStore::completeWriting(), clientReplyContext::createStoreEntry(), StoreEntry::destroyMemObject(), Rock::SwapDir::disconnect(), MemStore::disconnect(), StoreEntry::doAbandon(), Fs::Ufs::RebuildState::evictStaleAndContinue(), GetInfo(), clientReplyContext::handleIMSReply(), CollapsedForwarding::HandleNewData(), MemStore::init(), Store::Disks::init(), Store::Controller::maintain(), Maintain(), StoreEntry::mayStartSwapOut(), neighborsHtcpReply(), neighborsUdpAck(), peerDigestFetchReply(), clientReplyContext::processExpired(), purgeEntriesByUrl(), StoreEntry::release(), DiskdIOStrategy::SEND(), Ipc::StoreMapAnchor::setKey(), StoreEntry::setPrivateKey(), StoreEntry::setPublicKey(), snmp_confFn(), snmp_prfProtoFn(), snmp_sysFn(), SquidMain(), SquidShutdown(), StoreEntry::startWriting(), statObjectsStart(), Stats(), storeCleanup(), storeConfigure(), storeDigestCalcCap(), storeDigestRebuildResume(), storeGetMemSpace(), storeGetPublic(), storeGetPublicByRequestMethod(), testRock::storeInit(), storeInit(), storeSwapOutFileClosed(), StoreEntry::swapOut(), testStoreController::testMaxSize(), testStoreHashIndex::testMaxSize(), testStoreController::testSearch(), testStoreHashIndex::testSearch(), testStore::testSetRoot(), testUfs::testUfsSearch(), testStore::testUnsetRoot(), StoreEntry::transientsAbandonmentCheck(), and Rock::SwapDir::writeError().
◆ Stats()
void Store::Stats | ( | StoreEntry * | output | ) |
Definition at line 124 of file store.cc.
References assert, Root(), and Store::Controller::stat().
Referenced by storeRegisterWithCacheManager(), testStore::testStats(), testStoreController::testStats(), and testStoreHashIndex::testStats().
Variable Documentation
◆ nil
void Controller::create () STUB void Controller Controller Store::nil |
Definition at line 60 of file stub_libstore.cc.
Referenced by commUnsetConnTimeout(), HttpHeader::getAuthToken(), ConnStateData::getSslContextStart(), gopherReadReply(), htcpUnpackSpecifier(), idnsDoSendQueryVC(), Adaptation::Icap::Xaction::masterLogEntry(), HttpStateData::processReplyBody(), Http::Tunneler::readMore(), ConnStateData::sslCrtdHandleReply(), and Ftp::UrlWith2f().
◆ TheRoot
|
static |
Definition at line 934 of file Controller.cc.
Referenced by FreeMemory(), Init(), and Root().