xrootd
|
#include <XrdSutPFCache.hh>
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) |
XrdSutPFEntry * | Get (int i) const |
XrdSutPFEntry * | Get (XrdSutPFCacheRef &urRef, const char *ID, bool *wild=0) |
XrdSutPFEntry * | Add (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 | |
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 |
|
inline |
|
virtual |
XrdSutPFEntry* XrdSutPFCache::Add | ( | XrdSutPFCacheRef & | urRef, |
const char * | ID, | ||
bool | force = 0 |
||
) |
|
private |
void XrdSutPFCache::Dump | ( | const char * | msg = 0 | ) |
|
inline |
References cachemx.
|
inline |
References cachemx.
int XrdSutPFCache::Flush | ( | const char * | pfname = 0 | ) |
|
private |
|
inline |
XrdSutPFEntry* XrdSutPFCache::Get | ( | XrdSutPFCacheRef & | urRef, |
const char * | ID, | ||
bool * | wild = 0 |
||
) |
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 |
||
) |
|
inline |
References lifetime.
int XrdSutPFCache::Trim | ( | int | lifet = 0 | ) |
|
private |
Referenced by Empty(), Entries(), Get(), and XrdSutPFCache().
|
private |
Referenced by Get(), and XrdSutPFCache().
|
private |
Referenced by XrdSutPFCache().
|
private |
|
private |
Referenced by XrdSutPFCache().
|
private |
Referenced by XrdSutPFCache().
|
private |
Referenced by SetLifetime(), and XrdSutPFCache().
|
staticprivate |
|
private |
Referenced by XrdSutPFCache().
|
staticprivate |
|
private |
|
private |
Referenced by XrdSutPFCache().