#include <XrdOucCacheData.hh>
List of all members.
Classes |
| class | MrSw |
Public Member Functions |
| XrdOucCacheIO * | Base () |
| XrdOucCacheIO * | Detach () |
| const char * | Path () |
| void | Preread () |
| void | Preread (aprParms &Parms) |
| void | Preread (long long Offs, int rLen, int Opts=0) |
| int | Read (char *Buffer, long long Offset, int Length) |
| int | Sync () |
| int | Trunc (long long Offset) |
| int | Write (char *Buffer, long long Offset, int Length) |
| | XrdOucCacheData (XrdOucCacheReal *cP, XrdOucCacheIO *ioP, long long vn, int opts) |
Static Public Member Functions |
| static int | setAPR (aprParms &Dest, aprParms &Src, int pSize) |
Private Member Functions |
| | ~XrdOucCacheData () |
| void | QueuePR (long long SegOffs, int rLen, int prHow, int isAuto=0) |
| int | Read (XrdOucCacheStats &Now, char *Buffer, long long Offs, int Length) |
Private Attributes |
| XrdSysXSLock | rwLock |
| XrdSysXSLock * | pPLock |
| XrdSysXSLock * | rPLock |
| XrdSysXSLock * | wPLock |
| XrdSysXS_Type | pPLopt |
| XrdSysXS_Type | rPLopt |
| XrdSysMutex | DMutex |
| XrdOucCacheReal * | Cache |
| XrdOucCacheIO * | ioObj |
| long long | VNum |
| long long | SegSize |
| long long | OffMask |
| long long | SegShft |
| int | maxCache |
| char | isFIS |
| char | isRW |
| char | isADB |
| char | Debug |
| XrdOucCacheReal::prTask | prReq |
| XrdSysSemaphore * | prStop |
| long long | prNSS |
| long long | prRR [prRRMax] |
| int | prRRNow |
| aprParms | Apr |
| long long | prCalc |
| long long | prBeg [prMax] |
| long long | prEnd [prMax] |
| int | prNext |
| int | prFree |
| int | prPerf |
| char | prOpt [prMax] |
| char | prOK |
| char | prActive |
| char | prAuto |
Static Private Attributes |
| static const int | okRW = 1 |
| static const int | xqRW = 2 |
| static const int | prRRMax = 5 |
| static const int | prMax = 8 |
| static const int | prRun = 1 |
| static const int | prWait = 2 |
| static const int | prLRU = 1 |
| static const int | prSUSE = 2 |
| static const int | prSKIP = 3 |
Constructor & Destructor Documentation
References isADB, isFIS, isRW, okRW, SegShft, Cache, XrdOucCacheReal::SegShft, OffMask, XrdOucCacheReal::OffMask, SegSize, XrdOucCacheReal::SegSize, maxCache, XrdOucCacheReal::maxCache, Debug, XrdOucCacheReal::Dbg, prRR, prBeg, prEnd, prOpt, prNSS, prRRNow, prStop, prNext, prFree, prActive, prOK, XrdOucCacheReal::prNum, prReq, XrdOucCacheReal::prTask::Data, prAuto, setAPR(), Apr, XrdOucCacheReal::aprDefault, prPerf, prCalc, XrdOucCacheIO::aprParms::prRecalc, XrdOucCacheReal::Options, XrdOucCache::ioMTSafe, pPLopt, rPLopt, xs_Shared, xs_Exclusive, XrdOucCache::Serialized, pPLock, wPLock, rwLock, and rPLock.
| XrdOucCacheData::~XrdOucCacheData |
( |
| ) |
[inline, private] |
Member Function Documentation
Reimplemented from XrdOucCacheIO.
References rwLock, XrdSysXSLock::Lock(), xs_Exclusive, DMutex, XrdSysMutex::Lock(), prActive, prStop, XrdSysMutex::UnLock(), XrdSysSemaphore::Wait(), Cache, XrdOucCacheReal::Detach(), ioObj, XrdSysXSLock::UnLock(), XrdOucCache::Stats, XrdOucCacheStats::Add(), XrdOucCacheIO::Statistics, XrdOucCacheReal::Lgs, XrdOucCacheStats::BytesRead, XrdOucCacheStats::BytesGet, XrdOucCacheStats::BytesPass, XrdOucCacheStats::BytesWrite, XrdOucCacheStats::BytesPut, XrdOucCacheStats::Hits, XrdOucCacheStats::Miss, XrdOucCacheStats::BytesPead, XrdOucCacheStats::HitsPR, XrdOucCacheStats::MissPR, XrdOucCacheIO::Path(), and isADB.
| const char* XrdOucCacheData::Path |
( |
| ) |
[inline, virtual] |
| void XrdOucCacheData::Preread |
( |
| ) |
|
References pPLock, pPLopt, DMutex, XrdSysMutex::Lock(), prStop, prActive, XrdSysSemaphore::Post(), XrdSysMutex::UnLock(), prOpt, prNext, prBeg, prEnd, prMax, prSKIP, prRun, Debug, VNum, SegSize, ioObj, XrdOucCacheIO::Path(), prSUSE, XrdOucCacheSlot::isNew, Cache, XrdOucCacheReal::Get(), XrdOucCacheReal::Ref(), XrdOucCacheIO::Statistics, XrdOucCacheStats::Lock(), XrdOucCacheStats::BytesPead, XrdOucCacheStats::MissPR, XrdOucCacheStats::UnLock(), prWait, XrdOucCacheReal::PreRead(), and prReq.
Referenced by XrdOucCacheReal::PreRead().
| void XrdOucCacheData::Preread |
( |
aprParms & |
Parms | ) |
|
| void XrdOucCacheData::Preread |
( |
long long |
Offs, |
|
|
int |
rLen, |
|
|
int |
Opts = 0 |
|
) |
| [virtual] |
| void XrdOucCacheData::QueuePR |
( |
long long |
SegOffs, |
|
|
int |
rLen, |
|
|
int |
prHow, |
|
|
int |
isAuto = 0 |
|
) |
| [private] |
References DMutex, Debug, SegSize, prStop, prRRMax, prRR, OffMask, prLRU, Apr, XrdOucCacheIO::aprParms::minPages, prMax, prBeg, prEnd, prSKIP, prOpt, prAuto, prCalc, XrdOucCacheIO::Statistics, XrdOucCacheStats::BytesPead, XrdOucCacheStats::Lock(), XrdOucCacheIO::aprParms::prRecalc, XrdOucCacheStats::MissPR, XrdOucCacheStats::HitsPR, XrdOucCacheStats::UnLock(), ioObj, XrdOucCacheIO::Path(), prPerf, XrdOucCacheIO::aprParms::minPerf, prFree, prNext, prActive, prWait, Cache, XrdOucCacheReal::PreRead(), and prReq.
Referenced by Preread(), and Read().
| int XrdOucCacheData::Read |
( |
char * |
Buffer, |
|
|
long long |
Offset, |
|
|
int |
Length |
|
) |
| [virtual] |
Implements XrdOucCacheIO.
References rPLock, rPLopt, SegShft, prAuto, XrdOucCacheReal::MaxFO, maxCache, prSUSE, prLRU, QueuePR(), Apr, XrdOucCacheIO::aprParms::Trigger, prRRMax, prRR, DMutex, XrdSysMutex::Lock(), prRRNow, XrdSysMutex::UnLock(), Debug, VNum, OffMask, SegSize, Cache, XrdOucCacheReal::Get(), ioObj, XrdOucCacheStats::BytesGet, XrdOucCacheStats::Hits, XrdOucCacheStats::HitsPR, XrdOucCacheStats::Miss, XrdOucCacheStats::BytesRead, XrdOucCacheReal::Ref(), isFIS, XrdOucCacheIO::Statistics, XrdOucCacheStats::Add(), and XrdOucCacheData::MrSw::UnLock().
| int XrdOucCacheData::Read |
( |
XrdOucCacheStats & |
Now, |
|
|
char * |
Buffer, |
|
|
long long |
Offs, |
|
|
int |
Length |
|
) |
| [private] |
References SegShft, VNum, OffMask, SegSize, Debug, prOK, isRW, ioObj, XrdOucCacheIO::Read(), XrdOucCacheIO::Statistics, XrdOucCacheStats::Add(), XrdOucCacheStats::BytesPass, QueuePR(), prSKIP, Cache, XrdOucCacheReal::Get(), XrdOucCacheStats::Hits, XrdOucCacheStats::BytesGet, XrdOucCacheStats::HitsPR, XrdOucCacheReal::Ref(), and isFIS.
| int XrdOucCacheData::setAPR |
( |
aprParms & |
Dest, |
|
|
aprParms & |
Src, |
|
|
int |
pSize |
|
) |
| [static] |
| int XrdOucCacheData::Sync |
( |
| ) |
[inline, virtual] |
| int XrdOucCacheData::Trunc |
( |
long long |
Offset | ) |
[virtual] |
| int XrdOucCacheData::Write |
( |
char * |
Buffer, |
|
|
long long |
Offset, |
|
|
int |
Length |
|
) |
| [virtual] |
Implements XrdOucCacheIO.
References wPLock, xs_Exclusive, isRW, XrdOucCacheReal::MaxFO, ioObj, XrdOucCacheIO::Write(), XrdOucCacheStats::BytesWrite, SegShft, VNum, OffMask, SegSize, Cache, XrdOucCacheReal::Get(), XrdOucCacheStats::Miss, XrdOucCacheStats::BytesPut, XrdOucCacheStats::Hits, XrdOucCacheStats::HitsPR, XrdOucCacheReal::Upd(), XrdOucCacheIO::Statistics, and XrdOucCacheStats::Add().
Member Data Documentation
The documentation for this class was generated from the following files: