stub_libstore.cc
Go to the documentation of this file.
45 bool Controller::allowCollapsing(StoreEntry *, const RequestFlags &, const HttpRequestMethod &) STUB_RETVAL(false)
Definition: ConfigOption.h:58
Definition: RequestMethod.h:27
Definition: RequestFlags.h:21
Definition: Store.h:42
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:14
Definition: StoreSearch.h:16
Definition: Controller.h:23
void memoryOut(StoreEntry &, const bool preserveSwappable)
called to get rid of no longer needed entry data in RAM, if any
Definition: Controller.cc:594
StoreEntry * findCallbackXXX(const cache_key *)
Definition: Controller.cc:400
bool markedForDeletionAndAbandoned(const StoreEntry &) const
Definition: Controller.cc:312
void transientsClearCollapsingRequirement(StoreEntry &e)
removes collapsing requirement (for future hits)
Definition: Controller.cc:665
int transientReaders(const StoreEntry &) const
number of the transient entry readers some time ago
Definition: Controller.cc:651
void addReading(StoreEntry *, const cache_key *)
Definition: Controller.cc:771
void addWriting(StoreEntry *, const cache_key *)
Definition: Controller.cc:779
void handleIdleEntry(StoreEntry &)
called when the entry is no longer needed by any transaction
Definition: Controller.cc:672
bool allowCollapsing(StoreEntry *, const RequestFlags &, const HttpRequestMethod &)
tries to make the entry available for collapsing future requests
Definition: Controller.cc:754
bool transientsReader(const StoreEntry &) const
whether the entry is in "reading from Transients" I/O state
Definition: Controller.cc:473
void freeMemorySpace(const int spaceRequired)
Definition: Controller.cc:535
virtual void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Controller.cc:92
void syncCollapsed(const sfileno)
Update local intransit entry after changes made by appending worker.
Definition: Controller.cc:791
virtual void getStats(StoreInfoStats &stats) const override
collect statistics
Definition: Controller.cc:111
virtual uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: Controller.cc:166
void memoryDisconnect(StoreEntry &)
disassociates the entry from the memory cache, preserving cached data
Definition: Controller.cc:622
bool hasReadableDiskEntry(const StoreEntry &) const
whether there is a disk entry with e.key
Definition: Controller.cc:321
bool markedForDeletion(const cache_key *key) const
Definition: Controller.cc:305
void transientsDisconnect(StoreEntry &)
disassociates the entry from the intransit table
Definition: Controller.cc:658
int64_t accumulateMore(StoreEntry &) const
Definition: Controller.cc:485
static int store_dirs_rebuilding
the number of cache_dirs being rebuilt; TODO: move to Disks::Rebuilding
Definition: Controller.h:139
virtual int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Controller.cc:187
void stopSharing(StoreEntry &)
stop any current (and prevent any future) SMP sharing of the given entry
Definition: Controller.cc:630
bool transientsWriter(const StoreEntry &) const
whether the entry is in "writing to Transients" I/O state
Definition: Controller.cc:479
virtual void create() override
create system resources needed for this store to operate in the future
Definition: Controller.cc:78
void transientsCompleteWriting(StoreEntry &)
marks the entry completed for collapsed requests
Definition: Controller.cc:640
virtual void evictCached(StoreEntry &) override
Definition: Controller.cc:495
virtual void evictIfFound(const cache_key *) override
Definition: Controller.cc:506
void updateOnNotModified(StoreEntry *old, StoreEntry &e304)
using a 304 response, update the old entry (metadata and reply headers)
Definition: Controller.cc:721
virtual uint64_t currentCount() const override
the total number of objects stored right now
Definition: Controller.cc:180
virtual int callback() override
called once every main loop iteration; TODO: Move to UFS code.
Definition: Controller.cc:229
virtual void create() override
create system resources needed for this store to operate in the future
Definition: Disk.cc:40
bool objectSizeIsAcceptable(int64_t objSize) const
Definition: Disk.cc:156
int64_t minObjectSize() const
the size of the smallest entry this cache_dir can store
Definition: Disk.cc:96
virtual uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: Disk.cc:89
virtual void logEntry(const StoreEntry &e, int op) const
Definition: Disk.cc:227
virtual int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Disk.cc:103
virtual void reference(StoreEntry &e) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disk.cc:136
virtual void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Disk.cc:86
virtual void create() override
create system resources needed for this store to operate in the future
Definition: Disks.cc:220
static Parsed Parse(const SBuf &buf)
extracts PROXY protocol v1 header from the given buffer
Definition: Parser.cc:113
Definition: SquidConfig.h:60
void Controller::create() STUB void Controller Controller nil
Definition: stub_libstore.cc:19
void Init(Controller *root=nullptr)
initialize the storage module; a custom root is used by unit tests only
Definition: Controller.cc:941
void storeDirOpenSwapLogs(void) STUB int storeDirWriteCleanLogs(int) STUB_RETVAL(0) void storeDirCloseSwapLogs(void) STUB void allocate_new_swapdir(Store void storeDirSwapLog(const StoreEntry *, int) STUB namespace Store
Definition: stub_libstore.cc:138