xrootd
|
#include <XrdPosixCacheBC.hh>
Public Member Functions | |
virtual XrdOucCacheIO2 * | Base () |
virtual XrdOucCacheIO2 * | Detach () |
virtual long long | FSize () |
virtual int | Fstat (struct stat &buf) |
virtual const char * | Location () |
virtual const char * | Path () |
virtual int | Read (char *Buffer, long long Offset, int Length) |
virtual int | ReadV (const XrdOucIOVec *readV, int n) |
virtual int | Sync () |
virtual int | Trunc (long long Offset) |
virtual int | Write (char *Buffer, long long Offset, int Length) |
virtual bool | ioActive () |
virtual void | Preread (long long Offset, int Length, int Opts=0) |
virtual void | Preread (aprParms &Parms) |
XrdPosixCacheBCIO (XrdOucCacheIO *urCIO, XrdOucCacheIO2 *myCIO) | |
virtual | ~XrdPosixCacheBCIO () |
virtual void | Read (XrdOucCacheIOCB &iocb, char *buff, long long offs, int rlen) |
virtual int | Read (char *Buffer, long long Offset, int Length)=0 |
virtual void | ReadV (XrdOucCacheIOCB &iocb, const XrdOucIOVec *readV, int rnum) |
virtual int | ReadV (const XrdOucIOVec *readV, int n) |
virtual void | Sync (XrdOucCacheIOCB &iocb) |
virtual int | Sync ()=0 |
virtual void | Write (XrdOucCacheIOCB &iocb, char *buff, long long offs, int wlen) |
virtual int | Write (char *Buffer, long long Offset, int Length)=0 |
![]() | |
virtual void | Read (XrdOucCacheIOCB &iocb, char *buff, long long offs, int rlen) |
virtual void | ReadV (XrdOucCacheIOCB &iocb, const XrdOucIOVec *readV, int rnum) |
virtual void | Sync (XrdOucCacheIOCB &iocb) |
virtual void | Update (XrdOucCacheIO2 &iocp) |
virtual void | Write (XrdOucCacheIOCB &iocb, char *buff, long long offs, int wlen) |
virtual | ~XrdOucCacheIO2 () |
virtual int | Read (char *Buffer, long long Offset, int Length)=0 |
virtual int | ReadV (const XrdOucIOVec *readV, int n) |
virtual int | Sync ()=0 |
virtual int | Write (char *Buffer, long long Offset, int Length)=0 |
![]() | |
virtual | ~XrdOucCacheIO () |
Private Attributes | |
XrdOucCacheIO * | cacheIO1 |
XrdOucCacheIO2 * | cacheIO2 |
Additional Inherited Members | |
![]() | |
XrdOucCacheStats | Statistics |
![]() | |
static const int | SingleUse = 0x0001 |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from XrdOucCacheIO.
References cacheIO2.
|
inlinevirtual |
Reimplemented from XrdOucCacheIO.
References cacheIO1, cacheIO2, and XrdOucCacheIO::Detach().
|
inlinevirtual |
Implements XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::FSize().
|
inlinevirtual |
Perform an fstat() operation (defaults to passthrough).
sbuff | reference to the stat buffer to be filled in. Only fields st_size, st_blocks, st_mtime (st_atime and st_ctime may be set to st_mtime), st_ino, and st_mode need to be set. All other fields are preset and should not be changed. |
Reimplemented from XrdOucCacheIO2.
References cacheIO2, and XrdOucCacheIO2::Fstat().
|
inlinevirtual |
Reimplemented from XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::ioActive().
|
inlinevirtual |
Get the file's location (i.e. endpoint hostname and port)
Reimplemented from XrdOucCacheIO2.
References cacheIO2, and XrdOucCacheIO2::Location().
|
inlinevirtual |
Implements XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Path().
|
inlinevirtual |
Reimplemented from XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Preread().
|
inlinevirtual |
Reimplemented from XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Preread().
|
inlinevirtual |
Implements XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Read().
virtual int XrdOucCacheIO::Read |
Perform an asynchronous read (defaults to synchrnous).
iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. Done() is passed < 0 - Read failed, value is -errno. >=0 - Read succeeded, value is number of bytes read. |
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. |
|
inline |
|
inline |
Perform an asynchronous vector read (defaults to synchrnous).
iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. Done() is passed < 0 - ReadV failed, value is -errno. >=0 - ReadV succeeded, value is number of bytes read. |
readV | pointer to a vector of read requests. |
rnum | the number of elements in the vector. |
|
inlinevirtual |
Reimplemented from XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::ReadV().
|
inline |
|
inlinevirtual |
Implements XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Sync().
virtual int XrdOucCacheIO::Sync |
Perform an asynchronous fsync() operation (defaults to synchronous).
iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. Done() is passed <0 - Sync failed, value is -errno. =0 - Sync succeeded. |
|
inline |
|
inlinevirtual |
Implements XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Trunc().
|
inlinevirtual |
Implements XrdOucCacheIO.
References cacheIO1, and XrdOucCacheIO::Write().
virtual int XrdOucCacheIO::Write |
Perform an asynchronous write (defaults to synchronous).
iocb | reference to the callback object that receives the result. All results are returned via this object's Done() method. If the caller holds any locks they must be recursive locks as the callback may occur on the calling thread. < 0 - Write failed, value is -errno. >=0 - Write succeeded, value is number of bytes written. |
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 |
|
inline |
|
private |
|
private |
Referenced by Base(), Detach(), Fstat(), and Location().