![]() |
XRootD
|
#include <XrdRmcReal.hh>
Public Member Functions | |
XrdRmcReal (int &rc, XrdRmc::Parms &Parms, XrdOucCacheIO::aprParms *aprP=0) | |
~XrdRmcReal () | |
XrdOucCacheIO * | Attach (XrdOucCacheIO *ioP, int Options=0) |
void | PreRead () |
![]() | |
XrdOucCache (const char *ctype) | |
virtual | ~XrdOucCache () |
Destructor. More... | |
virtual int | LocalFilePath (const char *url, char *buff=0, int blen=0, LFP_Reason why=ForAccess, bool forall=false) |
virtual int | Prepare (const char *url, int oflags, mode_t mode) |
virtual int | Rename (const char *oldp, const char *newp) |
virtual int | Rmdir (const char *dirp) |
virtual int | Stat (const char *url, struct stat &sbuff) |
virtual int | Truncate (const char *path, off_t size) |
virtual int | Unlink (const char *path) |
virtual int | Xeq (XeqCmd cmd, char *arg, int arglen) |
Friends | |
class | XrdRmcData |
Additional Inherited Members | |
![]() | |
enum | LFP_Reason { ForAccess =0 , ForInfo , ForPath } |
enum | XeqCmd { xeqNoop = 0 } |
![]() | |
const char | CacheType [8] |
A 1-to-7 character cache type identifier (usually pfc or rmc). More... | |
XrdOucCacheStats | Statistics |
![]() | |
static const int | optFIS = 0x0001 |
File is structured (e.g. root file) More... | |
static const int | optNEW = 0x0014 |
File is new -> optRW (o/w read or write) More... | |
static const int | optRW = 0x0004 |
File is read/write (o/w read/only) More... | |
static const int | optWIN = 0x0024 |
File is new -> optRW use write-in cache. More... | |
Definition at line 39 of file XrdRmcReal.hh.
XrdRmcReal::XrdRmcReal | ( | int & | rc, |
XrdRmc::Parms & | Parms, | ||
XrdOucCacheIO::aprParms * | aprP = 0 |
||
) |
Definition at line 58 of file XrdRmcReal.cc.
References XrdRmc::Parms::CacheSize, XrdRmc::canPreRead, XrdRmc::Debug, XrdRmcSlot::HLink, XrdRmcSlot::Init(), XrdRmc::isServer, XrdRmcSlot::lenMask, XrdRmc::logStats, XrdRmc::Parms::Max2Cache, XrdRmc::Parms::MaxFiles, XrdRmc::Parms::minPages, XrdRmcSlot::SlotList::Next, XrdRmc::Parms::Options, XrdRmcSlot::Own, XrdRmc::Parms::PageSize, XrdRmcSlot::SlotList::Prev, XrdSysThread::Run(), XrdRmcData::setAPR(), and XrdRmcRealPRXeq().
XrdRmcReal::~XrdRmcReal | ( | ) |
Definition at line 154 of file XrdRmcReal.cc.
References XrdSysMutex::Lock(), XrdSysSemaphore::Post(), XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
|
virtual |
Implements XrdOucCache.
Definition at line 200 of file XrdRmcReal.cc.
References XrdRmcSlot::SlotState::Data, Xrd::dec, Xrd::hex, XrdRmc::isStructured, XrdOucCache::optFIS, XrdOucCache::optRW, XrdMpx::Opts, XrdOucCacheIO::Path(), XrdRmcSlot::Status, and XrdRmcData.
void XrdRmcReal::PreRead | ( | ) |
Definition at line 456 of file XrdRmcReal.cc.
References XrdSysMutex::Lock(), XrdSysSemaphore::Post(), XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdRmcData::Preread(), and XrdRmcRealPRXeq().
|
friend |
Definition at line 41 of file XrdRmcReal.hh.
Referenced by Attach().