SingletonIOStrategy Class Reference

#include <DiskIOStrategy.h>

Inheritance diagram for SingletonIOStrategy:
Collaboration diagram for SingletonIOStrategy:

Public Member Functions

 SingletonIOStrategy (DiskIOStrategy *anIO)
 
virtual bool shedLoad ()
 
virtual int load ()
 
virtual RefCount< DiskFilenewFile (char const *path)
 
virtual void sync ()
 
virtual bool unlinkdUseful () const
 
virtual void unlinkFile (char const *path)
 
virtual int callback ()
 
virtual void init ()
 
virtual void statfs (StoreEntry &sentry) const
 
virtual ConfigOptiongetOptionTree () const
 

Private Attributes

DiskIOStrategyio
 

Detailed Description

Definition at line 59 of file DiskIOStrategy.h.

Constructor & Destructor Documentation

SingletonIOStrategy::SingletonIOStrategy ( DiskIOStrategy anIO)
inline

Definition at line 63 of file DiskIOStrategy.h.

Member Function Documentation

virtual int SingletonIOStrategy::callback ( )
inlinevirtual

perform any pending callbacks

Reimplemented from DiskIOStrategy.

Definition at line 77 of file DiskIOStrategy.h.

References DiskIOStrategy::callback(), and io.

virtual ConfigOption* SingletonIOStrategy::getOptionTree ( ) const
inlinevirtual

module specific options

Reimplemented from DiskIOStrategy.

Definition at line 83 of file DiskIOStrategy.h.

References DiskIOStrategy::getOptionTree(), and io.

virtual void SingletonIOStrategy::init ( void  )
inlinevirtual

Init per-instance logic

Reimplemented from DiskIOStrategy.

Definition at line 79 of file DiskIOStrategy.h.

References DiskIOStrategy::init(), and io.

virtual int SingletonIOStrategy::load ( )
inlinevirtual

What is the current load? 999 = 99.9%

Implements DiskIOStrategy.

Definition at line 67 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::load().

virtual RefCount<DiskFile> SingletonIOStrategy::newFile ( char const *  path)
inlinevirtual

Return a handle for performing IO operations

Implements DiskIOStrategy.

Definition at line 69 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::newFile().

virtual bool SingletonIOStrategy::shedLoad ( )
inlinevirtual

Can the IO Strategy handle more requests ?

Implements DiskIOStrategy.

Definition at line 65 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::shedLoad().

virtual void SingletonIOStrategy::statfs ( StoreEntry ) const
inlinevirtual

cachemgr output on the IO instance stats

Reimplemented from DiskIOStrategy.

Definition at line 81 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::statfs().

virtual void SingletonIOStrategy::sync ( )
inlinevirtual

flush all IO operations

Reimplemented from DiskIOStrategy.

Definition at line 71 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::sync().

virtual bool SingletonIOStrategy::unlinkdUseful ( ) const
inlinevirtual

whether the IO Strategy can use unlinkd

Implements DiskIOStrategy.

Definition at line 73 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::unlinkdUseful().

virtual void SingletonIOStrategy::unlinkFile ( char const *  )
inlinevirtual

unlink a file by path

Implements DiskIOStrategy.

Definition at line 75 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::unlinkFile().

Member Data Documentation

DiskIOStrategy* SingletonIOStrategy::io
private

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors