Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FdCache::PartialCache Class Reference

List of all members.

Public Member Functions

 PartialCache ()
int open (ShortId sid, FdCache::OFlag ofl, FdCache::OFlag *oflout) throw ()
int tryopen (ShortId sid, FdCache::OFlag ofl, FdCache::OFlag *oflOut=NULL) throw ()
void close (ShortId sid, int fd, OFlag ofl) throw ()
void flush (ShortId sid, OFlag ofl) throw ()
void janitor_sweep (time_t now) throw ()
void accumulateStats (Basics::uint32 &n_in_cache, Basics::uint64 &hits, Basics::uint64 &open_misses, Basics::uint64 &try_misses, Basics::uint64 &evictions, Basics::uint64 &expirations)

Private Member Functions

void fdiDeleteNL (FdInfo *fdi, char *where)
int lookup (ShortIdKey &key, FdCache::OFlag ofl, FdCache::OFlag &oflout) throw ()

Private Attributes

Basics::mutex mu
FdTable table
FdInfo lruListHead
unsigned int nCached
Basics::uint64 hit_count
Basics::uint64 open_miss_count
Basics::uint64 try_miss_count
Basics::uint64 evict_count
Basics::uint64 expire_count

Constructor & Destructor Documentation

FdCache::PartialCache::PartialCache  )  [inline]
 

Definition at line 77 of file FdCache.C.

References lruListHead, FdCache::FdInfo::next, and FdCache::FdInfo::prev.


Member Function Documentation

void FdCache::PartialCache::accumulateStats Basics::uint32 n_in_cache,
Basics::uint64 &  hits,
Basics::uint64 &  open_misses,
Basics::uint64 &  try_misses,
Basics::uint64 &  evictions,
Basics::uint64 &  expirations
 

Referenced by FdCache::getStats().

void FdCache::PartialCache::close ShortId  sid,
int  fd,
OFlag  ofl
throw ()
 

Referenced by FdCache::close(), FdCache::PartialCache::fdiDeleteNL(), and FdCache::PartialCache::flush().

void FdCache::PartialCache::fdiDeleteNL FdInfo fdi,
char *  where
[private]
 

Referenced by FdCache::PartialCache::close(), and FdCache::PartialCache::janitor_sweep().

void FdCache::PartialCache::flush ShortId  sid,
OFlag  ofl
throw ()
 

Referenced by FdCache::flush().

void FdCache::PartialCache::janitor_sweep time_t  now  )  throw ()
 

Referenced by JanitorThread().

int FdCache::PartialCache::lookup ShortIdKey key,
FdCache::OFlag  ofl,
FdCache::OFlag oflout
throw () [private]
 

Referenced by FdCache::PartialCache::open(), and FdCache::PartialCache::tryopen().

int FdCache::PartialCache::open ShortId  sid,
FdCache::OFlag  ofl,
FdCache::OFlag oflout
throw ()
 

Referenced by FdCache::open().

int FdCache::PartialCache::tryopen ShortId  sid,
FdCache::OFlag  ofl,
FdCache::OFlag oflOut = NULL
throw ()
 

Referenced by FdCache::tryopen().


Member Data Documentation

Basics::uint64 FdCache::PartialCache::evict_count [private]
 

Definition at line 66 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), and FdCache::PartialCache::close().

Basics::uint64 FdCache::PartialCache::expire_count [private]
 

Definition at line 66 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), and FdCache::PartialCache::janitor_sweep().

Basics::uint64 FdCache::PartialCache::hit_count [private]
 

Definition at line 66 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), FdCache::PartialCache::open(), and FdCache::PartialCache::tryopen().

FdInfo FdCache::PartialCache::lruListHead [private]
 

Definition at line 63 of file FdCache.C.

Referenced by FdCache::PartialCache::close(), and PartialCache().

Basics::mutex FdCache::PartialCache::mu [private]
 

Definition at line 61 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), FdCache::PartialCache::close(), FdCache::PartialCache::flush(), FdCache::PartialCache::janitor_sweep(), FdCache::PartialCache::open(), and FdCache::PartialCache::tryopen().

unsigned int FdCache::PartialCache::nCached [private]
 

Definition at line 64 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), FdCache::PartialCache::close(), FdCache::PartialCache::flush(), FdCache::PartialCache::janitor_sweep(), and FdCache::PartialCache::lookup().

Basics::uint64 FdCache::PartialCache::open_miss_count [private]
 

Definition at line 66 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), and FdCache::PartialCache::open().

FdTable FdCache::PartialCache::table [private]
 

Definition at line 62 of file FdCache.C.

Referenced by FdCache::PartialCache::close(), FdCache::PartialCache::fdiDeleteNL(), FdCache::PartialCache::flush(), and FdCache::PartialCache::lookup().

Basics::uint64 FdCache::PartialCache::try_miss_count [private]
 

Definition at line 66 of file FdCache.C.

Referenced by FdCache::PartialCache::accumulateStats(), and FdCache::PartialCache::tryopen().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:18 2006 for Vesta by  doxygen 1.4.2