XrdSutPFCache Class Reference

#include <XrdSutPFCache.hh>

Collaboration diagram for XrdSutPFCache:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XrdSutPFCache ()
virtual ~XrdSutPFCache ()
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 (XrdSutPFCacheRef &urRef, const char *ID, bool *wild=0)
XrdSutPFEntryAdd (XrdSutPFCacheRef &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

XrdSutPFEntryGet (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_int32hashtable
kXR_int32 htmtime
XrdOucString pfile
bool isinit

Static Private Attributes

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

Constructor & Destructor Documentation

XrdSutPFCache::XrdSutPFCache (  )  [inline]
virtual XrdSutPFCache::~XrdSutPFCache (  )  [virtual]

Member Function Documentation

XrdSutPFEntry* XrdSutPFCache::Add ( XrdSutPFCacheRef urRef,
const char *  ID,
bool  force = 0 
)
bool XrdSutPFCache::Delete ( XrdSutPFEntry pfEnt  )  [private]
void XrdSutPFCache::Dump ( const char *  msg = 0  ) 
bool XrdSutPFCache::Empty (  )  const [inline]

References cachemx.

int XrdSutPFCache::Entries (  )  const [inline]

References cachemx.

int XrdSutPFCache::Flush ( const char *  pfname = 0  ) 
XrdSutPFEntry* XrdSutPFCache::Get ( XrdSutPFCacheRef urRef,
const char *  ID,
bool *  wild = 0 
)
XrdSutPFEntry* XrdSutPFCache::Get ( int  i  )  const [inline]

References cachemx, and cachent.

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

References lifetime.

int XrdSutPFCache::Trim ( int  lifet = 0  ) 

Member Data Documentation

int XrdSutPFCache::cachemx [private]

Referenced by Empty(), Entries(), Get(), and XrdSutPFCache().

Referenced by Get(), and XrdSutPFCache().

int XrdSutPFCache::cachesz [private]

Referenced by XrdSutPFCache().

Referenced by XrdSutPFCache().

bool XrdSutPFCache::isinit [private]

Referenced by XrdSutPFCache().

int XrdSutPFCache::lifetime [private]

Referenced by SetLifetime(), and XrdSutPFCache().

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

Referenced by XrdSutPFCache().

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

Referenced by XrdSutPFCache().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 17 Dec 2019 for xrootd by  doxygen 1.6.1