#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 |
XrdSutPFCache::XrdSutPFCache | ( | ) | [inline] |
virtual XrdSutPFCache::~XrdSutPFCache | ( | ) | [virtual] |
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] |
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 |
) |
int XrdSutPFCache::cachemx [private] |
Referenced by Empty(), Entries(), Get(), and XrdSutPFCache().
XrdSutPFEntry** XrdSutPFCache::cachent [private] |
Referenced by Get(), and XrdSutPFCache().
int XrdSutPFCache::cachesz [private] |
Referenced by XrdSutPFCache().
XrdOucHash<kXR_int32> XrdSutPFCache::hashtable [private] |
kXR_int32 XrdSutPFCache::htmtime [private] |
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] |
XrdOucString XrdSutPFCache::pfile [private] |
Referenced by XrdSutPFCache().
const int XrdSutPFCache::retryMSW = 300 [static, private] |
XrdSysRWLock XrdSutPFCache::rwlock [private] |
kXR_int32 XrdSutPFCache::utime [private] |
Referenced by XrdSutPFCache().