DiskFile Class Referenceabstract

#include <DiskFile.h>

Inheritance diagram for DiskFile:
Collaboration diagram for DiskFile:

Classes

class  Config
 generally useful configuration options supported by some children More...
 

Public Types

typedef RefCount< DiskFilePointer
 

Public Member Functions

virtual void configure (const Config &)
 notes supported configuration options; kids must call this first More...
 
virtual void open (int flags, mode_t mode, RefCount< IORequestor > callback)=0
 
virtual void create (int flags, mode_t mode, RefCount< IORequestor > callback)=0
 
virtual void read (ReadRequest *)=0
 
virtual void write (WriteRequest *)=0
 
virtual void close ()=0
 
virtual bool canRead () const =0
 
virtual bool canWrite () const
 
virtual int getFD () const
 
virtual bool error () const =0
 
virtual bool ioInProgress () const =0
 

Detailed Description

Definition at line 21 of file DiskFile.h.

Member Typedef Documentation

◆ Pointer

Definition at line 39 of file DiskFile.h.

Member Function Documentation

◆ canRead()

◆ canWrite()

virtual bool DiskFile::canWrite ( ) const
inlinevirtual

◆ close()

virtual void DiskFile::close ( )
pure virtual

◆ configure()

virtual void DiskFile::configure ( const Config )
inlinevirtual

Reimplemented in IpcIoFile.

Definition at line 42 of file DiskFile.h.

References callback, canRead(), close(), create(), open(), read(), and write().

Referenced by IpcIoFile::configure(), and Rock::SwapDir::init().

◆ create()

virtual void DiskFile::create ( int  flags,
mode_t  mode,
RefCount< IORequestor callback 
)
pure virtual

◆ error()

◆ getFD()

virtual int DiskFile::getFD ( ) const
inlinevirtual

During migration only

Reimplemented in IpcIoFile, BlockingFile, DiskThreadsDiskFile, and MmappedFile.

Definition at line 53 of file DiskFile.h.

References error(), and ioInProgress().

◆ ioInProgress()

virtual bool DiskFile::ioInProgress ( ) const
pure virtual

Inform callers if there is IO in progress

Implemented in IpcIoFile, DiskdFile, DiskThreadsDiskFile, BlockingFile, and MmappedFile.

Referenced by getFD(), and Fs::Ufs::UFSStoreState::tryClosing().

◆ open()

virtual void DiskFile::open ( int  flags,
mode_t  mode,
RefCount< IORequestor callback 
)
pure virtual

◆ read()

virtual void DiskFile::read ( ReadRequest )
pure virtual

◆ write()

virtual void DiskFile::write ( WriteRequest )
pure virtual

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors