#include <StoreFSufs.h>

Inheritance diagram for Fs::Ufs::StoreFSufs< TheSwapDir >:
Collaboration diagram for Fs::Ufs::StoreFSufs< TheSwapDir >:

Public Types

typedef std::vector< StoreFileSystem * >::iterator iterator
 
typedef std::vector< StoreFileSystem * >::const_iterator const_iterator
 

Public Member Functions

 StoreFSufs (char const *DefaultModuleType, char const *label)
 
virtual ~StoreFSufs ()
 
virtual const char * type () const
 
virtual SwapDircreateSwapDir ()
 
virtual void done ()
 
virtual void setup ()
 
 StoreFSufs (StoreFSufs const &)
 
StoreFSufsoperator= (StoreFSufs const &)
 

Static Public Member Functions

static StoreFileSystemGetInstance ()
 
static void SetupAllFs ()
 
static void FsAdd (StoreFileSystem &)
 
static void FreeAllFs ()
 
static StoreFileSystemFindByType (const char *type)
 
static const std::vector< StoreFileSystem * > & FileSystems ()
 

Protected Member Functions

virtual void registerWithCacheManager (void)
 

Protected Attributes

DiskIOModuleIO
 
const char * moduleName
 
const char * label
 
bool initialised
 

Static Private Member Functions

static std::vector< StoreFileSystem * > & GetFileSystems ()
 
static void RegisterAllFsWithCacheManager (void)
 

Static Private Attributes

static std::vector< StoreFileSystem * > * _FileSystems = NULL
 

Detailed Description

template<class TheSwapDir>
class Fs::Ufs::StoreFSufs< TheSwapDir >

,

Core UFS class. This template provides compile time aliases for ufs/aufs/diskd to ease configuration conversion - each becomes a StoreFS module whose createSwapDir method parameterises the common UFSSwapDir with an IO module instance.

Definition at line 34 of file StoreFSufs.h.

Member Typedef Documentation

◆ const_iterator

◆ iterator

Definition at line 98 of file StoreFileSystem.h.

Constructor & Destructor Documentation

◆ StoreFSufs() [1/2]

template<class C >
Fs::Ufs::StoreFSufs< C >::StoreFSufs ( char const *  DefaultModuleType,
char const *  label 
)

Definition at line 56 of file StoreFSufs.h.

References StoreFileSystem::FsAdd().

◆ ~StoreFSufs()

template<class TheSwapDir >
virtual Fs::Ufs::StoreFSufs< TheSwapDir >::~StoreFSufs ( )
inlinevirtual

Definition at line 39 of file StoreFSufs.h.

◆ StoreFSufs() [2/2]

template<class TheSwapDir >
Fs::Ufs::StoreFSufs< TheSwapDir >::StoreFSufs ( StoreFSufs< TheSwapDir > const &  )

Not implemented

Member Function Documentation

◆ createSwapDir()

template<class C >
SwapDir * Fs::Ufs::StoreFSufs< C >::createSwapDir
virtual

Implements StoreFileSystem.

Definition at line 70 of file StoreFSufs.h.

References C, and type.

◆ done()

template<class C >
void Fs::Ufs::StoreFSufs< C >::done
virtual

Implements StoreFileSystem.

Definition at line 78 of file StoreFSufs.h.

◆ FileSystems()

const std::vector< StoreFileSystem * > & StoreFileSystem::FileSystems ( )
staticinherited

Definition at line 45 of file StoreFileSystem.cc.

References StoreFileSystem::GetFileSystems().

Referenced by StoreFileSystem::FindByType().

◆ FindByType()

StoreFileSystem * StoreFileSystem::FindByType ( const char *  type)
staticinherited

Definition at line 74 of file StoreFileSystem.cc.

References StoreFileSystem::FileSystems(), and StoreFileSystem::type().

Referenced by Store::Disks::Parse().

◆ FreeAllFs()

void StoreFileSystem::FreeAllFs ( )
staticinherited

Definition at line 64 of file StoreFileSystem.cc.

References StoreFileSystem::done(), and StoreFileSystem::GetFileSystems().

Referenced by SquidShutdown().

◆ FsAdd()

void StoreFileSystem::FsAdd ( StoreFileSystem instance)
staticinherited

◆ GetFileSystems()

◆ GetInstance()

template<class TheSwapDir >
static StoreFileSystem& Fs::Ufs::StoreFSufs< TheSwapDir >::GetInstance ( )
static

◆ operator=()

template<class TheSwapDir >
StoreFSufs& Fs::Ufs::StoreFSufs< TheSwapDir >::operator= ( StoreFSufs< TheSwapDir > const &  )

◆ RegisterAllFsWithCacheManager()

void StoreFileSystem::RegisterAllFsWithCacheManager ( void  )
staticprivateinherited

Definition at line 17 of file StoreFileSystem.cc.

References StoreFileSystem::GetFileSystems().

◆ registerWithCacheManager()

void StoreFileSystem::registerWithCacheManager ( void  )
protectedvirtualinherited

Reimplemented in Rock::StoreFileSystem.

Definition at line 85 of file StoreFileSystem.cc.

◆ setup()

template<class C >
void Fs::Ufs::StoreFSufs< C >::setup
virtual

Implements StoreFileSystem.

Definition at line 85 of file StoreFSufs.h.

References assert.

◆ SetupAllFs()

void StoreFileSystem::SetupAllFs ( )
staticinherited

Definition at line 24 of file StoreFileSystem.cc.

References StoreFileSystem::GetFileSystems().

Referenced by testRock::commonInit(), and SquidMain().

◆ type()

template<class C >
const char * Fs::Ufs::StoreFSufs< C >::type
virtual

Implements StoreFileSystem.

Definition at line 63 of file StoreFSufs.h.

Member Data Documentation

◆ _FileSystems

std::vector< StoreFileSystem * > * StoreFileSystem::_FileSystems = NULL
staticprivateinherited

Definition at line 118 of file StoreFileSystem.h.

Referenced by StoreFileSystem::GetFileSystems().

◆ initialised

bool StoreFileSystem::initialised
protectedinherited

Definition at line 113 of file StoreFileSystem.h.

◆ IO

template<class TheSwapDir >
DiskIOModule* Fs::Ufs::StoreFSufs< TheSwapDir >::IO
protected

Definition at line 50 of file StoreFSufs.h.

◆ label

template<class TheSwapDir >
const char* Fs::Ufs::StoreFSufs< TheSwapDir >::label
protected

Definition at line 52 of file StoreFSufs.h.

◆ moduleName

template<class TheSwapDir >
const char* Fs::Ufs::StoreFSufs< TheSwapDir >::moduleName
protected

Definition at line 51 of file StoreFSufs.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors