SingletonIOStrategy Class Reference

#include <DiskIOStrategy.h>

Inheritance diagram for SingletonIOStrategy:
Collaboration diagram for SingletonIOStrategy:

Public Member Functions

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

Private Attributes

DiskIOStrategyio
 

Detailed Description

Definition at line 59 of file DiskIOStrategy.h.

Constructor & Destructor Documentation

◆ SingletonIOStrategy()

SingletonIOStrategy::SingletonIOStrategy ( DiskIOStrategy anIO)
inline

Definition at line 63 of file DiskIOStrategy.h.

Member Function Documentation

◆ callback()

int SingletonIOStrategy::callback ( )
inlineoverridevirtual

perform any pending callbacks

Reimplemented from DiskIOStrategy.

Definition at line 77 of file DiskIOStrategy.h.

References DiskIOStrategy::callback(), and io.

◆ getOptionTree()

ConfigOption * SingletonIOStrategy::getOptionTree ( ) const
inlineoverridevirtual

module specific options

Reimplemented from DiskIOStrategy.

Definition at line 83 of file DiskIOStrategy.h.

References DiskIOStrategy::getOptionTree(), and io.

◆ init()

void SingletonIOStrategy::init ( void  )
inlineoverridevirtual

Init per-instance logic

Reimplemented from DiskIOStrategy.

Definition at line 79 of file DiskIOStrategy.h.

References DiskIOStrategy::init(), and io.

◆ load()

int SingletonIOStrategy::load ( )
inlineoverridevirtual

What is the current load? 999 = 99.9%

Implements DiskIOStrategy.

Definition at line 67 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::load().

◆ newFile()

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

Return a handle for performing IO operations

Implements DiskIOStrategy.

Definition at line 69 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::newFile().

◆ shedLoad()

bool SingletonIOStrategy::shedLoad ( )
inlineoverridevirtual

Can the IO Strategy handle more requests ?

Implements DiskIOStrategy.

Definition at line 65 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::shedLoad().

◆ statfs()

void SingletonIOStrategy::statfs ( StoreEntry ) const
inlineoverridevirtual

cachemgr output on the IO instance stats

Reimplemented from DiskIOStrategy.

Definition at line 81 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::statfs().

◆ sync()

void SingletonIOStrategy::sync ( )
inlineoverridevirtual

flush all IO operations

Reimplemented from DiskIOStrategy.

Definition at line 71 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::sync().

◆ unlinkdUseful()

bool SingletonIOStrategy::unlinkdUseful ( ) const
inlineoverridevirtual

whether the IO Strategy can use unlinkd

Implements DiskIOStrategy.

Definition at line 73 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::unlinkdUseful().

◆ unlinkFile()

void SingletonIOStrategy::unlinkFile ( char const *  )
inlineoverridevirtual

unlink a file by path

Implements DiskIOStrategy.

Definition at line 75 of file DiskIOStrategy.h.

References io, and DiskIOStrategy::unlinkFile().

Member Data Documentation

◆ io

DiskIOStrategy* SingletonIOStrategy::io
private

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors