#include <IpcIoDiskIOModule.h>
Public Types | |
typedef std::vector< DiskIOModule * >::iterator | iterator |
typedef std::vector< DiskIOModule * >::const_iterator | const_iterator |
Public Member Functions | |
IpcIoDiskIOModule () | |
void | init () override |
void | gracefulShutdown () override |
char const * | type () const override |
DiskIOStrategy * | createStrategy () override |
Static Public Member Functions | |
static IpcIoDiskIOModule & | GetInstance () |
static void | SetupAllModules () |
static void | ModuleAdd (DiskIOModule &) |
static void | FreeAllModules () |
static DiskIOModule * | Find (char const *type) |
static DiskIOModule * | FindDefault () |
static std::vector< DiskIOModule * > const & | Modules () |
Static Protected Member Functions | |
static void | RegisterAllModulesWithCacheManager (void) |
Static Private Member Functions | |
static std::vector< DiskIOModule * > & | GetModules () |
Static Private Attributes | |
static IpcIoDiskIOModule | Instance |
static std::vector< DiskIOModule * > * | _Modules = nullptr |
Detailed Description
Definition at line 14 of file IpcIoDiskIOModule.h.
Member Typedef Documentation
◆ const_iterator
|
inherited |
Definition at line 37 of file DiskIOModule.h.
◆ iterator
|
inherited |
Definition at line 36 of file DiskIOModule.h.
Constructor & Destructor Documentation
◆ IpcIoDiskIOModule()
IpcIoDiskIOModule::IpcIoDiskIOModule | ( | ) |
Definition at line 13 of file IpcIoDiskIOModule.cc.
References DiskIOModule::ModuleAdd().
Member Function Documentation
◆ createStrategy()
|
overridevirtual |
Implements DiskIOModule.
Definition at line 33 of file IpcIoDiskIOModule.cc.
◆ Find()
|
staticinherited |
Definition at line 114 of file DiskIOModule.cc.
References DiskIOModule::GetModules(), and DiskIOModule::type().
Referenced by Fs::Ufs::UFSSwapDir::UFSSwapDir(), DiskIOModule::FindDefault(), Rock::SwapDir::init(), Rock::SwapDir::needsDiskStrand(), Fs::Ufs::UFSSwapDir::optionIOParse(), and TestUfs::testUfsSearch().
◆ FindDefault()
|
staticinherited |
Find any usable disk module. This will look for the 'best' available module for this system.
Best IO options are in order:
Definition at line 124 of file DiskIOModule.cc.
References DiskIOModule::Find().
Referenced by TestDiskIO::testFindDefault().
◆ FreeAllModules()
|
staticinherited |
Called when a graceful shutdown is to occur of each fs module.
Definition at line 104 of file DiskIOModule.cc.
References DiskIOModule::GetModules(), and DiskIOModule::gracefulShutdown().
Referenced by SquidShutdown().
◆ GetInstance()
|
static |
Definition at line 19 of file IpcIoDiskIOModule.cc.
References Instance.
Referenced by DiskIOModule::SetupAllModules().
◆ GetModules()
|
staticprivateinherited |
Definition at line 91 of file DiskIOModule.cc.
References DiskIOModule::_Modules.
Referenced by DiskIOModule::Find(), DiskIOModule::FreeAllModules(), DiskIOModule::ModuleAdd(), DiskIOModule::Modules(), and DiskIOModule::SetupAllModules().
◆ gracefulShutdown()
|
overridevirtual |
Implements DiskIOModule.
Definition at line 29 of file IpcIoDiskIOModule.cc.
◆ init()
|
overridevirtual |
Implements DiskIOModule.
Definition at line 25 of file IpcIoDiskIOModule.cc.
◆ ModuleAdd()
|
staticinherited |
Definition at line 72 of file DiskIOModule.cc.
References assert, DiskIOModule::GetModules(), and instance.
Referenced by BlockingDiskIOModule::BlockingDiskIOModule(), DiskDaemonDiskIOModule::DiskDaemonDiskIOModule(), DiskThreadsDiskIOModule::DiskThreadsDiskIOModule(), IpcIoDiskIOModule(), and MmappedDiskIOModule::MmappedDiskIOModule().
◆ Modules()
|
staticinherited |
Definition at line 85 of file DiskIOModule.cc.
References DiskIOModule::GetModules().
◆ RegisterAllModulesWithCacheManager()
|
staticprotectedinherited |
◆ SetupAllModules()
|
staticinherited |
Poke all compiled modules for self-setup
Definition at line 45 of file DiskIOModule.cc.
References BlockingDiskIOModule::GetInstance(), DiskDaemonDiskIOModule::GetInstance(), DiskThreadsDiskIOModule::GetInstance(), GetInstance(), MmappedDiskIOModule::GetInstance(), and DiskIOModule::GetModules().
Referenced by SquidMain().
◆ type()
|
overridevirtual |
Implements DiskIOModule.
Definition at line 41 of file IpcIoDiskIOModule.cc.
Member Data Documentation
◆ _Modules
|
staticprivateinherited |
Definition at line 57 of file DiskIOModule.h.
Referenced by DiskIOModule::GetModules().
◆ Instance
|
staticprivate |
Definition at line 26 of file IpcIoDiskIOModule.h.
Referenced by GetInstance().
The documentation for this class was generated from the following files:
- src/DiskIO/IpcIo/IpcIoDiskIOModule.h
- src/DiskIO/IpcIo/IpcIoDiskIOModule.cc