|
xrootd
|
#include <XrdCmsCache.hh>

Public Member Functions | |
| int | AddFile (XrdCmsSelect &Sel, SMask_t mask) |
| int | DelFile (XrdCmsSelect &Sel, SMask_t mask) |
| int | GetFile (XrdCmsSelect &Sel, SMask_t mask) |
| int | UnkFile (XrdCmsSelect &Sel, SMask_t mask) |
| int | WT4File (XrdCmsSelect &Sel, SMask_t mask) |
| void | Bounce (SMask_t smask, int SNum) |
| void | Drop (SMask_t mask, int SNum, int xHi) |
| int | Init (int fxHold, int fxDelay, int fxQuery, int seFS) |
| void * | TickTock () |
| XrdCmsCache () | |
| ~XrdCmsCache () | |
Public Attributes | |
| XrdCmsPList_Anchor | Paths |
| SMask_t | Vec |
| unsigned int | Start |
| unsigned int | End |
Private Member Functions | |
| void | Add2Q (XrdCmsRRQInfo *Info, XrdCmsKeyItem *cp, int isrw) |
| void | Dispatch (XrdCmsSelect &Sel, XrdCmsKeyItem *cinfo, short roQ, short rwQ) |
| SMask_t | getBVec (unsigned int todA, unsigned int &todB) |
| void | Recycle (XrdCmsKeyItem *theList) |
Private Attributes | |
| struct { | |
| SMask_t Vec | |
| unsigned int Start | |
| unsigned int End | |
| } | Bhistory [XrdCmsKeyItem::TickRate] |
| XrdSysMutex | myMutex |
| XrdCmsNash | CTable |
| unsigned int | Bounced [STMax] |
| SMask_t | okVec |
| unsigned int | Tick |
| unsigned int | Tock |
| unsigned int | BClock |
| int | DLTime |
| int | QDelay |
| int | Bhits |
| int | Bmiss |
| int | vecHi |
| int | isDFS |
Friends | |
| class | XrdCmsCacheJob |
| XrdCmsCache::XrdCmsCache | ( | ) | [inline] |
| XrdCmsCache::~XrdCmsCache | ( | ) | [inline] |
| void XrdCmsCache::Add2Q | ( | XrdCmsRRQInfo * | Info, |
| XrdCmsKeyItem * | cp, | ||
| int | isrw | ||
| ) | [private] |
| int XrdCmsCache::AddFile | ( | XrdCmsSelect & | Sel, |
| SMask_t | mask | ||
| ) |
References XrdCmsSelect::Advisory, XrdCmsKeyLoc::deadline, XrdCmsKey::Equiv(), XrdCmsKeyLoc::hfvec, XrdCmsKeyItem::Key, XrdCmsKeyItem::Loc, XrdCmsSelect::Opts, XrdCmsSelect::Path, XrdCmsSelect::Pending, XrdCmsKeyLoc::pfvec, XrdCmsKeyLoc::qfvec, XrdCmsKey::Ref, XrdCmsKeyLoc::roPend, XrdCmsKeyLoc::rwPend, XrdCmsKey::TOD, XrdCmsKeyLoc::TOD_B, XrdCmsKey::TODRef, and XrdCmsSelect::Write.
Referenced by XrdCmsNode::do_Have(), XrdCmsNode::do_StateFWD(), XrdCmsCluster::Locate(), XrdCmsCluster::SelDFS(), XrdCmsCluster::Select(), and XrdCmsCluster::SelNode().
| void XrdCmsCache::Bounce | ( | SMask_t | smask, |
| int | SNum | ||
| ) |
Referenced by XrdCmsProtocol::ConfigCheck(), and XrdCmsNode::do_Status().
| int XrdCmsCache::DelFile | ( | XrdCmsSelect & | Sel, |
| SMask_t | mask | ||
| ) |
References XrdCmsSelect::Advisory, XrdSysError::Emsg(), XrdCmsKeyLoc::hfvec, XrdCmsKeyItem::Key, XrdCmsKeyItem::Loc, XrdCmsSelect::Opts, XrdCmsSelect::Path, XrdCmsKeyLoc::pfvec, XrdCmsKeyItem::Recycle(), XrdCms::Say, XrdCmsKeyItem::Unload(), and XrdCmsKey::Val.
Referenced by XrdCmsNode::do_Gone(), XrdCmsNode::do_Mv(), XrdCmsNode::do_Rm(), and XrdCmsNode::do_Rmdir().
| void XrdCmsCache::Dispatch | ( | XrdCmsSelect & | Sel, |
| XrdCmsKeyItem * | cinfo, | ||
| short | roQ, | ||
| short | rwQ | ||
| ) | [private] |
| void XrdCmsCache::Drop | ( | SMask_t | mask, |
| int | SNum, | ||
| int | xHi | ||
| ) |
Referenced by XrdCmsCluster::Drop().
| SMask_t XrdCmsCache::getBVec | ( | unsigned int | todA, |
| unsigned int & | todB | ||
| ) | [private] |
| int XrdCmsCache::GetFile | ( | XrdCmsSelect & | Sel, |
| SMask_t | mask | ||
| ) |
References XrdCmsSelect::bf, XrdCmsKeyLoc::deadline, XrdCmsSelect::hf, XrdCmsKeyLoc::hfvec, XrdCmsKeyItem::Key, XrdCmsKeyItem::Loc, XrdCmsSelect::Path, XrdCmsSelect::pf, XrdCmsKeyLoc::pfvec, XrdCmsKeyLoc::qfvec, XrdCmsKey::Ref, XrdCmsKey::TOD, XrdCmsKeyLoc::TOD_B, XrdCmsKey::TODRef, and XrdCmsSelect::Vec.
Referenced by XrdCmsNode::do_StateFWD(), XrdCmsCluster::Locate(), XrdCmsCluster::SelDFS(), and XrdCmsCluster::Select().
| int XrdCmsCache::Init | ( | int | fxHold, |
| int | fxDelay, | ||
| int | fxQuery, | ||
| int | seFS | ||
| ) |
| void XrdCmsCache::Recycle | ( | XrdCmsKeyItem * | theList | ) | [private] |
References XrdCmsRRQ::Del(), XrdSysError::Emsg(), XrdCmsKeyItem::Key, XrdCmsKeyItem::Loc, XrdCmsKeyItem::minAlloc, XrdCmsKeyItem::minFree, XrdCmsKeyItem::Replenish(), XrdCmsKeyLoc::roPend, XrdCms::RRQ, XrdCmsKeyLoc::rwPend, XrdCms::Say, XrdCmsKeyItem::Stats(), and XrdCmsKey::TODRef.
Referenced by XrdCmsCacheJob::DoIt().
| void * XrdCmsCache::TickTock | ( | ) |
References XrdCms::Sched, XrdScheduler::Schedule(), XrdSysTimer::Snooze(), XrdCmsKeyItem::TickMask, and XrdCmsKeyItem::Unload().
Referenced by XrdCmsStartTickTock().
| int XrdCmsCache::UnkFile | ( | XrdCmsSelect & | Sel, |
| SMask_t | mask | ||
| ) |
References DEBUG, EPNAME, XrdCmsKey::Equiv(), XrdCmsKeyItem::Key, XrdCmsKeyItem::Loc, XrdCmsSelect::Path, XrdCmsKeyLoc::qfvec, XrdCmsKey::TODRef, and XrdCmsKey::Val.
Referenced by XrdCmsCluster::Locate(), and XrdCmsCluster::Select().
| int XrdCmsCache::WT4File | ( | XrdCmsSelect & | Sel, |
| SMask_t | mask | ||
| ) |
References XrdCmsKeyLoc::deadline, DEBUG, EPNAME, XrdCmsKey::Equiv(), XrdCmsKeyLoc::hfvec, XrdCmsSelect::InfoP, XrdCmsKeyItem::Key, XrdCmsKeyItem::Loc, XrdCmsSelect::Opts, XrdCmsSelect::Path, XrdCmsKey::TODRef, XrdCmsKey::Val, and XrdCmsSelect::Write.
Referenced by XrdCmsCluster::Locate(), and XrdCmsCluster::Select().
friend class XrdCmsCacheJob [friend] |
unsigned int XrdCmsCache::BClock [private] |
struct { ... } XrdCmsCache::Bhistory[XrdCmsKeyItem::TickRate] [private] |
Referenced by XrdCmsCache().
int XrdCmsCache::Bhits [private] |
int XrdCmsCache::Bmiss [private] |
unsigned int XrdCmsCache::Bounced[STMax] [private] |
Referenced by XrdCmsCache().
XrdCmsNash XrdCmsCache::CTable [private] |
int XrdCmsCache::DLTime [private] |
| unsigned int XrdCmsCache::End |
int XrdCmsCache::isDFS [private] |
XrdSysMutex XrdCmsCache::myMutex [private] |
SMask_t XrdCmsCache::okVec [private] |
int XrdCmsCache::QDelay [private] |
| unsigned int XrdCmsCache::Start |
unsigned int XrdCmsCache::Tick [private] |
unsigned int XrdCmsCache::Tock [private] |
int XrdCmsCache::vecHi [private] |
1.8.0