DiskIOStrategy Class Referenceabstract

#include <DiskIOStrategy.h>

Inheritance diagram for DiskIOStrategy:

Public Member Functions

virtual ~DiskIOStrategy ()
 
virtual bool shedLoad ()=0
 
virtual int load ()=0
 
virtual RefCount< DiskFilenewFile (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 ConfigOptiongetOptionTree () const
 

Detailed Description

Definition at line 19 of file DiskIOStrategy.h.

Constructor & Destructor Documentation

◆ ~DiskIOStrategy()

virtual DiskIOStrategy::~DiskIOStrategy ( )
inlinevirtual

Definition at line 23 of file DiskIOStrategy.h.

References load(), newFile(), and shedLoad().

Member Function Documentation

◆ callback()

virtual int DiskIOStrategy::callback ( )
inlinevirtual

perform any pending callbacks

Reimplemented in SingletonIOStrategy, DiskdIOStrategy, and DiskThreadsIOStrategy.

Definition at line 44 of file DiskIOStrategy.h.

Referenced by Fs::Ufs::UFSStrategy::callback().

◆ getOptionTree()

virtual ConfigOption* DiskIOStrategy::getOptionTree ( ) const
inlinevirtual

module specific options

Reimplemented in SingletonIOStrategy, and DiskdIOStrategy.

Definition at line 53 of file DiskIOStrategy.h.

References NULL.

◆ init()

virtual void DiskIOStrategy::init ( void  )
inlinevirtual

Init per-instance logic

Reimplemented in SingletonIOStrategy, DiskdIOStrategy, and DiskThreadsIOStrategy.

Definition at line 47 of file DiskIOStrategy.h.

Referenced by Fs::Ufs::UFSStrategy::init(), and Rock::SwapDir::init().

◆ load()

virtual int DiskIOStrategy::load ( )
pure virtual

◆ newFile()

virtual RefCount<DiskFile> DiskIOStrategy::newFile ( char const *  path)
pure virtual

◆ shedLoad()

virtual bool DiskIOStrategy::shedLoad ( )
pure virtual

◆ statfs()

virtual void DiskIOStrategy::statfs ( StoreEntry ) const
inlinevirtual

cachemgr output on the IO instance stats

Reimplemented in SingletonIOStrategy, and DiskdIOStrategy.

Definition at line 50 of file DiskIOStrategy.h.

Referenced by Fs::Ufs::UFSStrategy::statfs().

◆ sync()

virtual void DiskIOStrategy::sync ( )
inlinevirtual

flush all IO operations

Reimplemented in SingletonIOStrategy, DiskdIOStrategy, and DiskThreadsIOStrategy.

Definition at line 35 of file DiskIOStrategy.h.

References unlinkdUseful(), and unlinkFile().

Referenced by Fs::Ufs::UFSStrategy::sync().

◆ unlinkdUseful()

virtual bool DiskIOStrategy::unlinkdUseful ( ) const
pure virtual

◆ unlinkFile()

virtual void DiskIOStrategy::unlinkFile ( char const *  )
pure virtual

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors