XrdOucCacheData Class Reference

#include <XrdOucCacheData.hh>

Inheritance diagram for XrdOucCacheData:
Inheritance graph
[legend]
Collaboration diagram for XrdOucCacheData:
Collaboration graph
[legend]

List of all members.

Classes

class  MrSw

Public Member Functions

XrdOucCacheIOBase ()
XrdOucCacheIODetach ()
long long FSize ()
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
XrdSysXSLockpPLock
XrdSysXSLockrPLock
XrdSysXSLockwPLock
XrdSysXS_Type pPLopt
XrdSysXS_Type rPLopt
XrdSysMutex DMutex
XrdOucCacheRealCache
XrdOucCacheIOioObj
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
XrdSysSemaphoreprStop
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

XrdOucCacheData::XrdOucCacheData ( XrdOucCacheReal cP,
XrdOucCacheIO ioP,
long long  vn,
int  opts 
)
XrdOucCacheData::~XrdOucCacheData (  )  [inline, private]

Member Function Documentation

XrdOucCacheIO* XrdOucCacheData::Base (  )  [inline]

References ioObj.

XrdOucCacheIO* XrdOucCacheData::Detach (  ) 
long long XrdOucCacheData::FSize (  )  [inline, virtual]

Obtain size of the file.

Returns:
Size of the file in bytes.

Implements XrdOucCacheIO.

References XrdOucCacheIO::FSize(), and ioObj.

const char* XrdOucCacheData::Path (  )  [inline, virtual]

Get the path associated with this object.

Returns:
Pointer to the path.

Implements XrdOucCacheIO.

References ioObj, and XrdOucCacheIO::Path().

void XrdOucCacheData::Preread ( long long  Offs,
int  rLen,
int  Opts = 0 
) [virtual]

Reimplemented from XrdOucCacheIO.

void XrdOucCacheData::Preread ( aprParms &  Parms  ) 
void XrdOucCacheData::Preread (  ) 
void XrdOucCacheData::QueuePR ( long long  SegOffs,
int  rLen,
int  prHow,
int  isAuto = 0 
) [private]
int XrdOucCacheData::Read ( XrdOucCacheStats Now,
char *  Buffer,
long long  Offs,
int  Length 
) [private]
int XrdOucCacheData::Read ( char *  buff,
long long  offs,
int  rlen 
) [virtual]

Perform an synchronous read.

Parameters:
buff pointer to the buffer to receive the results. The buffer must remain valid until the callback is invoked.
offs the offset into the file.
rlen the number of bytes to read.
Returns:
< 0 - Read failed, value is -errno. >=0 - Read succeeded, value is number of bytes read.

Implements XrdOucCacheIO.

static int XrdOucCacheData::setAPR ( aprParms &  Dest,
aprParms &  Src,
int  pSize 
) [static]
int XrdOucCacheData::Sync (  )  [inline, virtual]

Perform an synchronous sync() operation.

Returns:
<0 - Sync failed, value is -errno. =0 - Sync succeeded.

Implements XrdOucCacheIO.

int XrdOucCacheData::Trunc ( long long  offs  )  [virtual]

Perform an synchronous trunc() operation.

Parameters:
offs the size the file is have.
Returns:
<0 - Trunc failed, value is -errno. =0 - Trunc succeeded.

Implements XrdOucCacheIO.

int XrdOucCacheData::Write ( char *  buff,
long long  offs,
int  wlen 
) [virtual]

Perform an synchronous write.

Parameters:
buff pointer to the buffer holding the contents. The buffer must remain valid until the callback is invoked.
offs the offset into the file.
wlen the number of bytes to write
Returns:
< 0 - Write failed, value is -errno. >=0 - Write succeeded, value is number of bytes written.

Implements XrdOucCacheIO.


Member Data Documentation

aprParms XrdOucCacheData::Apr [private]
char XrdOucCacheData::Debug [private]

Referenced by Base(), FSize(), and Path().

char XrdOucCacheData::isADB [private]
char XrdOucCacheData::isFIS [private]
char XrdOucCacheData::isRW [private]
long long XrdOucCacheData::OffMask [private]
const int XrdOucCacheData::okRW = 1 [static, private]
char XrdOucCacheData::prActive [private]
char XrdOucCacheData::prAuto [private]
long long XrdOucCacheData::prBeg[prMax] [private]
long long XrdOucCacheData::prCalc [private]
long long XrdOucCacheData::prEnd[prMax] [private]
int XrdOucCacheData::prFree [private]
const int XrdOucCacheData::prLRU = 1 [static, private]
const int XrdOucCacheData::prMax = 8 [static, private]
int XrdOucCacheData::prNext [private]
long long XrdOucCacheData::prNSS [private]
char XrdOucCacheData::prOK [private]
char XrdOucCacheData::prOpt[prMax] [private]
int XrdOucCacheData::prPerf [private]
long long XrdOucCacheData::prRR[prRRMax] [private]
const int XrdOucCacheData::prRRMax = 5 [static, private]
int XrdOucCacheData::prRRNow [private]
const int XrdOucCacheData::prRun = 1 [static, private]
const int XrdOucCacheData::prSKIP = 3 [static, private]
const int XrdOucCacheData::prSUSE = 2 [static, private]
const int XrdOucCacheData::prWait = 2 [static, private]
long long XrdOucCacheData::SegShft [private]
long long XrdOucCacheData::SegSize [private]
long long XrdOucCacheData::VNum [private]
const int XrdOucCacheData::xqRW = 2 [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 7 Jul 2020 for xrootd by  doxygen 1.6.1