#include <DiskIOStrategy.h>
Public Member Functions | |
virtual | ~DiskIOStrategy () |
virtual bool | shedLoad ()=0 |
virtual int | load ()=0 |
virtual RefCount< DiskFile > | newFile (char const *path)=0 |
virtual void | sync () |
virtual bool | unlinkdUseful () const =0 |
virtual void | unlinkFile (char const *)=0 |
virtual int | callback () |
virtual void | init () |
virtual void | statfs (StoreEntry &) const |
virtual ConfigOption * | getOptionTree () const |
Detailed Description
Definition at line 19 of file DiskIOStrategy.h.
Constructor & Destructor Documentation
◆ ~DiskIOStrategy()
|
inlinevirtual |
Definition at line 23 of file DiskIOStrategy.h.
Member Function Documentation
◆ callback()
|
inlinevirtual |
perform any pending callbacks
Reimplemented in DiskdIOStrategy, SingletonIOStrategy, and DiskThreadsIOStrategy.
Definition at line 44 of file DiskIOStrategy.h.
Referenced by SingletonIOStrategy::callback().
◆ getOptionTree()
|
inlinevirtual |
module specific options
Reimplemented in DiskdIOStrategy, and SingletonIOStrategy.
Definition at line 53 of file DiskIOStrategy.h.
Referenced by SingletonIOStrategy::getOptionTree().
◆ init()
|
inlinevirtual |
Init per-instance logic
Reimplemented in DiskdIOStrategy, SingletonIOStrategy, and DiskThreadsIOStrategy.
Definition at line 47 of file DiskIOStrategy.h.
Referenced by SingletonIOStrategy::init().
◆ load()
|
pure virtual |
What is the current load? 999 = 99.9%
Implemented in BlockingIOStrategy, DiskdIOStrategy, SingletonIOStrategy, DiskThreadsIOStrategy, IpcIoIOStrategy, and MmappedIOStrategy.
Referenced by SingletonIOStrategy::load().
◆ newFile()
Return a handle for performing IO operations
Implemented in BlockingIOStrategy, DiskdIOStrategy, SingletonIOStrategy, DiskThreadsIOStrategy, IpcIoIOStrategy, and MmappedIOStrategy.
Referenced by SingletonIOStrategy::newFile().
◆ shedLoad()
|
pure virtual |
Can the IO Strategy handle more requests ?
Implemented in BlockingIOStrategy, DiskdIOStrategy, SingletonIOStrategy, DiskThreadsIOStrategy, IpcIoIOStrategy, and MmappedIOStrategy.
Referenced by Fs::Ufs::UFSStrategy::shedLoad(), and SingletonIOStrategy::shedLoad().
◆ statfs()
|
inlinevirtual |
cachemgr output on the IO instance stats
Reimplemented in DiskdIOStrategy, and SingletonIOStrategy.
Definition at line 50 of file DiskIOStrategy.h.
Referenced by SingletonIOStrategy::statfs().
◆ sync()
|
inlinevirtual |
flush all IO operations
Reimplemented in DiskdIOStrategy, SingletonIOStrategy, and DiskThreadsIOStrategy.
Definition at line 35 of file DiskIOStrategy.h.
Referenced by SingletonIOStrategy::sync().
◆ unlinkdUseful()
|
pure virtual |
whether the IO Strategy can use unlinkd
Implemented in BlockingIOStrategy, DiskdIOStrategy, SingletonIOStrategy, DiskThreadsIOStrategy, IpcIoIOStrategy, and MmappedIOStrategy.
Referenced by SingletonIOStrategy::unlinkdUseful().
◆ unlinkFile()
|
pure virtual |
unlink a file by path
Implemented in BlockingIOStrategy, DiskdIOStrategy, DiskThreadsIOStrategy, IpcIoIOStrategy, MmappedIOStrategy, and SingletonIOStrategy.
Referenced by SingletonIOStrategy::unlinkFile().
The documentation for this class was generated from the following file:
- src/DiskIO/DiskIOStrategy.h