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

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

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::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)

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().

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
staticprivate

Referenced by Get().

XrdOucString XrdSutCache::pfile
private

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

const int XrdSutCache::retryMSW = 300
staticprivate

Referenced by Get().

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

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