#include <DiskIOStrategy.h>
Public Member Functions | |
SingletonIOStrategy (DiskIOStrategy *anIO) | |
bool | shedLoad () override |
int | load () override |
RefCount< DiskFile > | newFile (char const *path) override |
void | sync () override |
bool | unlinkdUseful () const override |
void | unlinkFile (char const *path) override |
int | callback () override |
void | init () override |
void | statfs (StoreEntry &sentry) const override |
ConfigOption * | getOptionTree () const override |
Private Attributes | |
DiskIOStrategy * | io |
Detailed Description
Definition at line 59 of file DiskIOStrategy.h.
Constructor & Destructor Documentation
◆ SingletonIOStrategy()
|
inline |
Definition at line 63 of file DiskIOStrategy.h.
Member Function Documentation
◆ callback()
|
inlineoverridevirtual |
perform any pending callbacks
Reimplemented from DiskIOStrategy.
Definition at line 77 of file DiskIOStrategy.h.
References DiskIOStrategy::callback(), and io.
◆ getOptionTree()
|
inlineoverridevirtual |
module specific options
Reimplemented from DiskIOStrategy.
Definition at line 83 of file DiskIOStrategy.h.
References DiskIOStrategy::getOptionTree(), and io.
◆ init()
|
inlineoverridevirtual |
Init per-instance logic
Reimplemented from DiskIOStrategy.
Definition at line 79 of file DiskIOStrategy.h.
References DiskIOStrategy::init(), and io.
◆ load()
|
inlineoverridevirtual |
What is the current load? 999 = 99.9%
Implements DiskIOStrategy.
Definition at line 67 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::load().
◆ newFile()
Return a handle for performing IO operations
Implements DiskIOStrategy.
Definition at line 69 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::newFile().
◆ shedLoad()
|
inlineoverridevirtual |
Can the IO Strategy handle more requests ?
Implements DiskIOStrategy.
Definition at line 65 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::shedLoad().
◆ statfs()
|
inlineoverridevirtual |
cachemgr output on the IO instance stats
Reimplemented from DiskIOStrategy.
Definition at line 81 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::statfs().
◆ sync()
|
inlineoverridevirtual |
flush all IO operations
Reimplemented from DiskIOStrategy.
Definition at line 71 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::sync().
◆ unlinkdUseful()
|
inlineoverridevirtual |
whether the IO Strategy can use unlinkd
Implements DiskIOStrategy.
Definition at line 73 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::unlinkdUseful().
◆ unlinkFile()
|
inlineoverridevirtual |
unlink a file by path
Implements DiskIOStrategy.
Definition at line 75 of file DiskIOStrategy.h.
References io, and DiskIOStrategy::unlinkFile().
Member Data Documentation
◆ io
|
private |
Definition at line 86 of file DiskIOStrategy.h.
Referenced by callback(), getOptionTree(), init(), load(), newFile(), shedLoad(), statfs(), sync(), unlinkdUseful(), and unlinkFile().
The documentation for this class was generated from the following file:
- src/DiskIO/DiskIOStrategy.h