11#define STUB_API "store/libstore.la"
67bool Disk::needsDiskStrand() const
STUB_RETVAL(false)
69void Disk::diskFull()
STUB
70void Disk::create()
STUB
78void Disk::maintain()
STUB
80void Disk::maxObjectSize(int64_t)
STUB
81bool Disk::objectSizeIsAcceptable(int64_t) const
STUB_RETVAL(false)
82void Disk::parseOptions(
int)
STUB
89void Disk::openLog()
STUB
90void Disk::closeLog()
STUB
93void Disk::writeCleanDone()
STUB
96#include "store/Disks.h"
101void Disks::init()
STUB
110void Disks::sync()
STUB
114void Disks::maintain()
STUB
120void Disks::configure()
STUB
124void Disks::Parse(DiskConfig &)
STUB
125void Disks::Dump(const DiskConfig &,
StoreEntry &, const
char *)
STUB
135#include "store/LocalSearch.h"
146#include "store/SwapMetaOut.h"
void free_cachedir(Store::DiskConfig *swap)
void storeDirSwapLog(const StoreEntry *e, int op)
void allocate_new_swapdir(Store::DiskConfig &swap)
void storeDirOpenSwapLogs()
int storeDirWriteCleanLogs(int reopen)
void storeDirCloseSwapLogs()
#define STUB
macro to stub a void function.
High-level store statistics used by mgr:info action. Used inside PODs!
void memoryOut(StoreEntry &, const bool preserveSwappable)
called to get rid of no longer needed entry data in RAM, if any
void configure()
update configuration, including limits (re)calculation
~Controller() override
this destructor is never called because Controller singleton is immortal
StoreEntry * findCallbackXXX(const cache_key *)
bool markedForDeletionAndAbandoned(const StoreEntry &) const
int transientReaders(const StoreEntry &) const
number of the transient entry readers some time ago
void noteStoppedSharedWriting(StoreEntry &)
adjust shared state after this worker stopped changing the entry
void addReading(StoreEntry *, const cache_key *)
void addWriting(StoreEntry *, const cache_key *)
uint64_t maxSize() const override
void handleIdleEntry(StoreEntry &)
called when the entry is no longer needed by any transaction
bool allowCollapsing(StoreEntry *, const RequestFlags &, const HttpRequestMethod &)
tries to make the entry available for collapsing future requests
void sync() override
prepare for shutdown
void stat(StoreEntry &) const override
bool transientsReader(const StoreEntry &) const
whether the entry is in "reading from Transients" I/O state
void freeMemorySpace(const int spaceRequired)
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
void syncCollapsed(const sfileno)
Update local intransit entry after changes made by appending worker.
void getStats(StoreInfoStats &stats) const override
collect statistics
uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
void memoryDisconnect(StoreEntry &)
disassociates the entry from the memory cache, preserving cached data
bool hasReadableDiskEntry(const StoreEntry &) const
whether there is a disk entry with e.key
bool markedForDeletion(const cache_key *key) const
bool updateOnNotModified(StoreEntry *old, StoreEntry &e304)
void transientsDisconnect(StoreEntry &)
disassociates the entry from the intransit table
int64_t accumulateMore(StoreEntry &) const
static int store_dirs_rebuilding
the number of cache_dirs being rebuilt; TODO: move to Disks::Rebuilding
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
static bool SmpAware()
whether there are any SMP-aware storages
bool transientsWriter(const StoreEntry &) const
whether the entry is in "writing to Transients" I/O state
void create() override
create system resources needed for this store to operate in the future
uint64_t currentSize() const override
current size
void evictCached(StoreEntry &) override
void evictIfFound(const cache_key *) override
StoreEntry * find(const cache_key *)
uint64_t currentCount() const override
the total number of objects stored right now
int callback() override
called once every main loop iteration; TODO: Move to UFS code.
StoreEntry * peek(const cache_key *)
manages a single cache_dir
char const * type() const
void create() override
create system resources needed for this store to operate in the future
Controller & Root()
safely access controller singleton
size_t UnpackSwapMetaSize(const SBuf &)
void UnpackHitSwapMeta(char const *, ssize_t, StoreEntry &)
deserializes entry metadata from the given buffer into the cache hit entry
size_t UnpackIndexSwapMeta(const MemBuf &, StoreEntry &, cache_key *)
StoreSearch * NewLocalSearch()
AllocedBuf PackSwapMeta(const StoreEntry &, size_t &size)
unsigned char cache_key
Store key.