Disk.h
Go to the documentation of this file.
Definition: ConfigOption.h:58
Definition: RefCount.h:28
Definition: RemovalPolicy.h:39
Definition: Store.h:42
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:14
Definition: Controlled.h:19
Definition: Disk.h:131
virtual void write(StoreEntry const &)=0
virtual const StoreEntry * nextEntry()=0
virtual bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const =0
check whether we can store the entry; if we can, report current load
Definition: Disk.cc:164
void create() override
create system resources needed for this store to operate in the future
Definition: Disk.cc:40
virtual void parse(int index, char *path)=0
virtual bool doReportStat() const
whether stat should be reported by this SwapDir
Definition: Disk.h:35
virtual void finalizeSwapoutSuccess(const StoreEntry &)=0
finalize the successful swapout that has been already noticed by Store
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 bool allowOptionReconfigure(const char *const) const
Definition: Disk.h:85
struct Store::Disk::Flags flags
virtual bool smpAware() const =0
whether this disk storage is capable of serving multiple workers
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 void reconfigure()=0
bool optionObjectSizeParse(char const *option, const char *value, int reconfiguring)
Definition: Disk.cc:347
virtual void disconnect(StoreEntry &)
called when the entry is about to forget its association with cache_dir
Definition: Disk.h:71
virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *)=0
virtual bool unlinkdUseful() const =0
whether SwapDir may benefit from unlinkd
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Disk.cc:103
virtual bool hasReadableEntry(const StoreEntry &e) const =0
whether this cache dir has an entry with e.key
void reference(StoreEntry &e) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disk.cc:136
struct Store::Disk::@138 fs
void optionObjectSizeDump(StoreEntry *e) const
Definition: Disk.cc:382
bool optionReadOnlyParse(char const *option, const char *value, int reconfiguring)
Definition: Disk.cc:318
virtual void finalizeSwapoutFailure(StoreEntry &)=0
abort the failed swapout that has been already noticed by Store
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Disk.cc:86
virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *)=0
int reconfiguring
class Ping::pingStats_ stats
Definition: SquidConfig.h:62
Definition: Disk.h:109