HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FS_DiskCache::Stats Class Reference

Statistics for the cache. More...

#include <FS_DiskCache.h>

Public Member Functions

 Stats ()
 
void clearStats ()
 
void fullClear ()
 
void merge (const Stats &s)
 Merge stats from a different set of stats. More...
 
bool loadFrom (const Accessor &fd)
 Load stats from a given file descriptor. More...
 
bool saveTo (Accessor &a) const
 Write stats to the file descriptor. More...
 
void addCacheHit ()
 Update stats with a cache hit. More...
 
void addToCache (const Accessor &a)
 Update stats from the given accessor. More...
 
int64 rmFromCache (const Accessor &a, const char *filepath)
 Purge from the given accessor. More...
 
void reset (int64 nfiles, int64 size)
 Reset the file count and size. More...
 
void dump () const
 
void dump (UT_JSONWriter &w) const
 
int64 cacheHits () const
 
int64 cacheMiss () const
 
int64 cacheError () const
 
int64 purgeCount () const
 
int64 fileCount () const
 
int64 diskSize () const
 
int64 maxSize () const
 
int64 maxLogSize () const
 
time_t createTime () const
 
time_t lastRecompute () const
 

Friends

class FS_DiskCache
 

Detailed Description

Statistics for the cache.

Definition at line 130 of file FS_DiskCache.h.

Constructor & Destructor Documentation

FS_DiskCache::Stats::Stats ( )
inline

Definition at line 133 of file FS_DiskCache.h.

Member Function Documentation

void FS_DiskCache::Stats::addCacheHit ( )
inline

Update stats with a cache hit.

Definition at line 187 of file FS_DiskCache.h.

void FS_DiskCache::Stats::addToCache ( const Accessor a)

Update stats from the given accessor.

int64 FS_DiskCache::Stats::cacheError ( ) const
inline

Access statistics

Definition at line 171 of file FS_DiskCache.h.

int64 FS_DiskCache::Stats::cacheHits ( ) const
inline

Access statistics

Definition at line 169 of file FS_DiskCache.h.

int64 FS_DiskCache::Stats::cacheMiss ( ) const
inline

Access statistics

Definition at line 170 of file FS_DiskCache.h.

void FS_DiskCache::Stats::clearStats ( )
inline

Definition at line 138 of file FS_DiskCache.h.

time_t FS_DiskCache::Stats::createTime ( ) const
inline

Access statistics

Definition at line 177 of file FS_DiskCache.h.

int64 FS_DiskCache::Stats::diskSize ( ) const
inline

Access statistics

Definition at line 174 of file FS_DiskCache.h.

void FS_DiskCache::Stats::dump ( ) const
void FS_DiskCache::Stats::dump ( UT_JSONWriter w) const
int64 FS_DiskCache::Stats::fileCount ( ) const
inline

Access statistics

Definition at line 173 of file FS_DiskCache.h.

void FS_DiskCache::Stats::fullClear ( )
inline

Definition at line 147 of file FS_DiskCache.h.

time_t FS_DiskCache::Stats::lastRecompute ( ) const
inline

Access statistics

Definition at line 178 of file FS_DiskCache.h.

bool FS_DiskCache::Stats::loadFrom ( const Accessor fd)

Load stats from a given file descriptor.

int64 FS_DiskCache::Stats::maxLogSize ( ) const
inline

Access statistics

Definition at line 176 of file FS_DiskCache.h.

int64 FS_DiskCache::Stats::maxSize ( ) const
inline

Access statistics

Definition at line 175 of file FS_DiskCache.h.

void FS_DiskCache::Stats::merge ( const Stats s)
inline

Merge stats from a different set of stats.

Definition at line 157 of file FS_DiskCache.h.

int64 FS_DiskCache::Stats::purgeCount ( ) const
inline

Access statistics

Definition at line 172 of file FS_DiskCache.h.

void FS_DiskCache::Stats::reset ( int64  nfiles,
int64  size 
)
inline

Reset the file count and size.

Definition at line 196 of file FS_DiskCache.h.

int64 FS_DiskCache::Stats::rmFromCache ( const Accessor a,
const char *  filepath 
)

Purge from the given accessor.

bool FS_DiskCache::Stats::saveTo ( Accessor a) const

Write stats to the file descriptor.

Friends And Related Function Documentation

friend class FS_DiskCache
friend

Definition at line 212 of file FS_DiskCache.h.


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