xrootd
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
XrdSutCache Class Reference

#include <XrdSutCache.hh>

Collaboration diagram for XrdSutCache:
Collaboration graph
[legend]

List of all members.

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)
XrdSutPFEntry * Get (int i) const
XrdSutPFEntry * Get (XrdSutCacheRef &urRef, const char *ID, bool *wild=0)
XrdSutPFEntry * Add (XrdSutCacheRef &urRef, 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 Member Functions

XrdSutPFEntry * Get (const char *ID, bool *wild)
bool Delete (XrdSutPFEntry *pfEnt)

Private Attributes

XrdSysRWLock rwlock
int cachesz
int cachemx
XrdSutPFEntry ** cachent
kXR_int32 utime
int lifetime
XrdOucHash< kXR_int32 > hashtable
kXR_int32 htmtime
XrdOucString pfile
bool isinit

Static Private Attributes

static const int maxTries = 100
static const int retryMSW = 300

Constructor & Destructor Documentation


Member Function Documentation

XrdSutPFEntry * XrdSutCache::Add ( XrdSutCacheRef &  urRef,
const char *  ID,
bool  force = 0 
)
bool XrdSutCache::Delete ( XrdSutPFEntry *  pfEnt) [private]
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 ( const char *  ID,
bool *  wild 
) [private]
XrdSutPFEntry* XrdSutCache::Get ( int  i) const [inline]

References cachemx, and cachent.

XrdSutPFEntry * XrdSutCache::Get ( XrdSutCacheRef &  urRef,
const char *  ID,
bool *  wild = 0 
)
int XrdSutCache::Init ( int  capacity = 100,
bool  lock = 1 
)
int XrdSutCache::Load ( const char *  pfname)
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)

Member Data Documentation

int XrdSutCache::cachemx [private]
int XrdSutCache::cachesz [private]

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

Referenced by Rehash(), and XrdSutCache().

bool XrdSutCache::isinit [private]

Referenced by Init(), Reset(), and XrdSutCache().

int XrdSutCache::lifetime [private]

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

const int XrdSutCache::maxTries = 100 [static, private]

Referenced by Get().

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

const int XrdSutCache::retryMSW = 300 [static, private]

Referenced by Get().


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