BlockingIOStrategy Class Reference

#include <BlockingIOStrategy.h>

Inheritance diagram for BlockingIOStrategy:
Collaboration diagram for BlockingIOStrategy:

Public Member Functions

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

Detailed Description

Definition at line 15 of file BlockingIOStrategy.h.

Member Function Documentation

◆ callback()

virtual int DiskIOStrategy::callback ( )
inlinevirtualinherited

perform any pending callbacks

Reimplemented in DiskdIOStrategy, SingletonIOStrategy, and DiskThreadsIOStrategy.

Definition at line 44 of file DiskIOStrategy.h.

Referenced by SingletonIOStrategy::callback().

◆ getOptionTree()

virtual ConfigOption * DiskIOStrategy::getOptionTree ( ) const
inlinevirtualinherited

module specific options

Reimplemented in DiskdIOStrategy, and SingletonIOStrategy.

Definition at line 53 of file DiskIOStrategy.h.

Referenced by SingletonIOStrategy::getOptionTree().

◆ init()

virtual void DiskIOStrategy::init ( void  )
inlinevirtualinherited

Init per-instance logic

Reimplemented in DiskdIOStrategy, SingletonIOStrategy, and DiskThreadsIOStrategy.

Definition at line 47 of file DiskIOStrategy.h.

Referenced by SingletonIOStrategy::init().

◆ load()

int BlockingIOStrategy::load ( )
overridevirtual

What is the current load? 999 = 99.9%

Implements DiskIOStrategy.

Definition at line 23 of file BlockingIOStrategy.cc.

◆ newFile()

DiskFile::Pointer BlockingIOStrategy::newFile ( char const *  path)
overridevirtual

Return a handle for performing IO operations

Implements DiskIOStrategy.

Definition at line 30 of file BlockingIOStrategy.cc.

◆ shedLoad()

bool BlockingIOStrategy::shedLoad ( )
overridevirtual

Can the IO Strategy handle more requests ?

Implements DiskIOStrategy.

Definition at line 17 of file BlockingIOStrategy.cc.

◆ statfs()

virtual void DiskIOStrategy::statfs ( StoreEntry ) const
inlinevirtualinherited

cachemgr output on the IO instance stats

Reimplemented in DiskdIOStrategy, and SingletonIOStrategy.

Definition at line 50 of file DiskIOStrategy.h.

Referenced by SingletonIOStrategy::statfs().

◆ sync()

virtual void DiskIOStrategy::sync ( )
inlinevirtualinherited

flush all IO operations

Reimplemented in DiskdIOStrategy, SingletonIOStrategy, and DiskThreadsIOStrategy.

Definition at line 35 of file DiskIOStrategy.h.

Referenced by SingletonIOStrategy::sync().

◆ unlinkdUseful()

bool BlockingIOStrategy::unlinkdUseful ( ) const
overridevirtual

whether the IO Strategy can use unlinkd

Implements DiskIOStrategy.

Definition at line 36 of file BlockingIOStrategy.cc.

◆ unlinkFile()

void BlockingIOStrategy::unlinkFile ( char const *  )
overridevirtual

unlink a file by path

Implements DiskIOStrategy.

Definition at line 42 of file BlockingIOStrategy.cc.

References unlinkdUnlink().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors