#include <DiskDaemonDiskIOModule.h>

Inheritance diagram for DiskDaemonDiskIOModule:
Collaboration diagram for DiskDaemonDiskIOModule:

Public Types

typedef std::vector< DiskIOModule * >::iterator iterator
 
typedef std::vector< DiskIOModule * >::const_iterator const_iterator
 

Public Member Functions

 DiskDaemonDiskIOModule ()
 
virtual void init ()
 
virtual void gracefulShutdown ()
 
virtual char const * type () const
 
virtual DiskIOStrategycreateStrategy ()
 

Static Public Member Functions

static DiskDaemonDiskIOModuleGetInstance ()
 
static void SetupAllModules ()
 
static void ModuleAdd (DiskIOModule &)
 
static void FreeAllModules ()
 
static DiskIOModuleFind (char const *type)
 
static DiskIOModuleFindDefault ()
 
static std::vector< DiskIOModule * > const & Modules ()
 

Static Protected Member Functions

static void RegisterAllModulesWithCacheManager (void)
 

Private Member Functions

void registerWithCacheManager (void)
 

Static Private Member Functions

static std::vector< DiskIOModule * > & GetModules ()
 

Private Attributes

bool initialised
 

Static Private Attributes

static DiskDaemonDiskIOModule Instance
 
static std::vector< DiskIOModule * > * _Modules = nullptr
 

Detailed Description

Definition at line 14 of file DiskDaemonDiskIOModule.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 37 of file DiskIOModule.h.

◆ iterator

Definition at line 36 of file DiskIOModule.h.

Constructor & Destructor Documentation

◆ DiskDaemonDiskIOModule()

DiskDaemonDiskIOModule::DiskDaemonDiskIOModule ( )

Definition at line 16 of file DiskDaemonDiskIOModule.cc.

References DiskIOModule::ModuleAdd().

Member Function Documentation

◆ createStrategy()

DiskIOStrategy * DiskDaemonDiskIOModule::createStrategy ( )
virtual

Implements DiskIOModule.

Definition at line 57 of file DiskDaemonDiskIOModule.cc.

◆ Find()

◆ FindDefault()

DiskIOModule * DiskIOModule::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()

void DiskIOModule::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()

DiskDaemonDiskIOModule & DiskDaemonDiskIOModule::GetInstance ( )
static

Definition at line 22 of file DiskDaemonDiskIOModule.cc.

References Instance.

Referenced by DiskIOModule::SetupAllModules().

◆ GetModules()

std::vector< DiskIOModule * > & DiskIOModule::GetModules ( )
staticprivateinherited

◆ gracefulShutdown()

void DiskDaemonDiskIOModule::gracefulShutdown ( )
virtual

Implements DiskIOModule.

Definition at line 51 of file DiskDaemonDiskIOModule.cc.

References initialised.

◆ init()

void DiskDaemonDiskIOModule::init ( )
virtual

Implements DiskIOModule.

Definition at line 28 of file DiskDaemonDiskIOModule.cc.

References assert, diskd_stats, initialised, and registerWithCacheManager().

◆ ModuleAdd()

◆ Modules()

std::vector< DiskIOModule * > const & DiskIOModule::Modules ( )
staticinherited

Definition at line 85 of file DiskIOModule.cc.

References DiskIOModule::GetModules().

◆ RegisterAllModulesWithCacheManager()

static void DiskIOModule::RegisterAllModulesWithCacheManager ( void  )
staticprotectedinherited

◆ registerWithCacheManager()

void DiskDaemonDiskIOModule::registerWithCacheManager ( void  )
private

Definition at line 45 of file DiskDaemonDiskIOModule.cc.

References DiskdAction::Create(), and Mgr::RegisterAction().

Referenced by init().

◆ SetupAllModules()

void DiskIOModule::SetupAllModules ( )
staticinherited

◆ type()

char const * DiskDaemonDiskIOModule::type ( ) const
virtual

Implements DiskIOModule.

Definition at line 65 of file DiskDaemonDiskIOModule.cc.

Member Data Documentation

◆ _Modules

std::vector< DiskIOModule * > * DiskIOModule::_Modules = nullptr
staticprivateinherited

Definition at line 57 of file DiskIOModule.h.

Referenced by DiskIOModule::GetModules().

◆ initialised

bool DiskDaemonDiskIOModule::initialised
private

Definition at line 27 of file DiskDaemonDiskIOModule.h.

Referenced by gracefulShutdown(), and init().

◆ Instance

DiskDaemonDiskIOModule DiskDaemonDiskIOModule::Instance
staticprivate

Definition at line 26 of file DiskDaemonDiskIOModule.h.

Referenced by GetInstance().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors