xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdSutPFCache Class Reference

#include <XrdSutPFCache.hh>

Collaboration diagram for XrdSutPFCache:
Collaboration graph
[legend]

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::XrdSutPFCache ( )
inline

◆ ~XrdSutPFCache()

virtual XrdSutPFCache::~XrdSutPFCache ( )
virtual

Member Function Documentation

◆ Add()

XrdSutPFEntry * XrdSutPFCache::Add ( XrdSutPFCacheRef urRef,
const char *  ID,
bool  force = 0 
)

◆ Delete()

bool XrdSutPFCache::Delete ( XrdSutPFEntry pfEnt)
private

◆ Dump()

void XrdSutPFCache::Dump ( const char *  msg = 0)

◆ Empty()

bool XrdSutPFCache::Empty ( ) const
inline

References cachemx.

◆ Entries()

int XrdSutPFCache::Entries ( ) const
inline

References cachemx.

◆ Flush()

int XrdSutPFCache::Flush ( const char *  pfname = 0)

◆ Get() [1/3]

XrdSutPFEntry * XrdSutPFCache::Get ( const char *  ID,
bool *  wild 
)
private

◆ Get() [2/3]

XrdSutPFEntry * XrdSutPFCache::Get ( int  i) const
inline

References cachemx, and cachent.

◆ Get() [3/3]

XrdSutPFEntry * XrdSutPFCache::Get ( XrdSutPFCacheRef urRef,
const char *  ID,
bool *  wild = 0 
)

◆ Init()

int XrdSutPFCache::Init ( int  capacity = 100,
bool  lock = 1 
)

◆ Load()

int XrdSutPFCache::Load ( const char *  pfname)

◆ Refresh()

int XrdSutPFCache::Refresh ( )

◆ Rehash()

int XrdSutPFCache::Rehash ( bool  force = 0,
bool  lock = 1 
)

◆ Remove()

bool XrdSutPFCache::Remove ( const char *  ID,
int  opt = 1 
)

◆ Reset()

int XrdSutPFCache::Reset ( int  newsz = -1,
bool  lock = 1 
)

◆ SetLifetime()

void XrdSutPFCache::SetLifetime ( int  lifet = 300)
inline

References lifetime.

◆ Trim()

int XrdSutPFCache::Trim ( int  lifet = 0)

Member Data Documentation

◆ cachemx

int XrdSutPFCache::cachemx
private

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

◆ cachent

XrdSutPFEntry** XrdSutPFCache::cachent
private

Referenced by Get(), and XrdSutPFCache().

◆ cachesz

int XrdSutPFCache::cachesz
private

Referenced by XrdSutPFCache().

◆ hashtable

XrdOucHash<kXR_int32> XrdSutPFCache::hashtable
private

◆ htmtime

kXR_int32 XrdSutPFCache::htmtime
private

Referenced by XrdSutPFCache().

◆ isinit

bool XrdSutPFCache::isinit
private

Referenced by XrdSutPFCache().

◆ lifetime

int XrdSutPFCache::lifetime
private

Referenced by SetLifetime(), and XrdSutPFCache().

◆ maxTries

const int XrdSutPFCache::maxTries = 100
staticprivate

◆ pfile

XrdOucString XrdSutPFCache::pfile
private

Referenced by XrdSutPFCache().

◆ retryMSW

const int XrdSutPFCache::retryMSW = 300
staticprivate

◆ rwlock

XrdSysRWLock XrdSutPFCache::rwlock
private

◆ utime

kXR_int32 XrdSutPFCache::utime
private

Referenced by XrdSutPFCache().


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