TestSwapDir.h
Go to the documentation of this file.
Definition: Store.h:42
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: TestSwapDir.h:15
bool hasReadableEntry(const StoreEntry &) const override
whether this cache dir has an entry with e.key
Definition: TestSwapDir.h:38
uint64_t currentCount() const override
the total number of objects stored right now
Definition: TestSwapDir.cc:25
StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
Definition: TestSwapDir.cc:58
void finalizeSwapoutSuccess(const StoreEntry &) override
finalize the successful swapout that has been already noticed by Store
Definition: TestSwapDir.h:27
bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const override
check whether we can store the entry; if we can, report current load
Definition: TestSwapDir.cc:51
StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
Definition: TestSwapDir.cc:64
bool unlinkdUseful() const override
whether SwapDir may benefit from unlinkd
Definition: TestSwapDir.cc:45
bool smpAware() const override
whether this disk storage is capable of serving multiple workers
Definition: TestSwapDir.h:39
void finalizeSwapoutFailure(StoreEntry &) override
abort the failed swapout that has been already noticed by Store
Definition: TestSwapDir.h:28