xrootd
Public Member Functions | Private Attributes | List of all members
XrdSutCache Class Reference

#include <XrdSutCache.hh>

Collaboration diagram for XrdSutCache:
Collaboration graph
[legend]

Public Member Functions

 XrdSutCache ()
virtual ~XrdSutCache ()
int Entries () const
bool Empty () const
int Init (int capacity=100, bool lock=1)
int Reset (int newsz=-1, bool lock=1)
int Load (const char *pfname)
int Flush (const char *pfname=0)
int Refresh ()
int Rehash (bool force=0, bool lock=1)
void SetLifetime (int lifet=300)
XrdSutPFEntryGet (int i) const
XrdSutPFEntryGet (const char *ID, bool *wild=0)
XrdSutPFEntryAdd (const char *ID, bool force=0)
bool Remove (const char *ID, int opt=1)
int Trim (int lifet=0)
void Dump (const char *msg=0)

Private Attributes

XrdSysRWLock rwlock
int cachesz
int cachemx
XrdSutPFEntry ** cachent
kXR_int32 utime
int lifetime
XrdOucHash< kXR_int32hashtable
kXR_int32 htmtime
XrdOucString pfile

Constructor & Destructor Documentation

XrdSutCache::XrdSutCache ( )
inline
XrdSutCache::~XrdSutCache ( )
virtual

Member Function Documentation

XrdSutPFEntry * XrdSutCache::Add ( const char *  ID,
bool  force = 0 
)
void XrdSutCache::Dump ( const char *  msg = 0)
bool XrdSutCache::Empty ( ) const
inline
int XrdSutCache::Entries ( ) const
inline

References cachemx.

int XrdSutCache::Flush ( const char *  pfname = 0)
XrdSutPFEntry* XrdSutCache::Get ( int  i) const
inline
XrdSutPFEntry * XrdSutCache::Get ( const char *  ID,
bool *  wild = 0 
)
int XrdSutCache::Init ( int  capacity = 100,
bool  lock = 1 
)
int XrdSutCache::Load ( const char *  pfname)
int XrdSutCache::Refresh ( )
int XrdSutCache::Rehash ( bool  force = 0,
bool  lock = 1 
)
bool XrdSutCache::Remove ( const char *  ID,
int  opt = 1 
)
int XrdSutCache::Reset ( int  newsz = -1,
bool  lock = 1 
)
void XrdSutCache::SetLifetime ( int  lifet = 300)
inline

References lifetime.

int XrdSutCache::Trim ( int  lifet = 0)

References cachemx, cachent, lifetime, and rwlock.

Member Data Documentation

int XrdSutCache::cachemx
private
XrdSutPFEntry** XrdSutCache::cachent
private
int XrdSutCache::cachesz
private
XrdOucHash<kXR_int32> XrdSutCache::hashtable
private

Referenced by Get(), Rehash(), and Remove().

kXR_int32 XrdSutCache::htmtime
private

Referenced by Rehash(), and XrdSutCache().

int XrdSutCache::lifetime
private

Referenced by SetLifetime(), Trim(), and XrdSutCache().

XrdOucString XrdSutCache::pfile
private

Referenced by Flush(), Load(), Refresh(), and XrdSutCache().

XrdSysRWLock XrdSutCache::rwlock
private
kXR_int32 XrdSutCache::utime
private

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