xrootd
|
Downloads original file into a single file on local disk. Handles read requests as they come along. More...
#include <XrdFileCacheIOEntireFile.hh>
Public Member Functions | |
IOEntireFile (XrdOucCacheIO2 *io, XrdOucCacheStats &stats, Cache &cache) | |
Constructor. More... | |
~IOEntireFile () | |
Destructor. More... | |
virtual int | Read (char *Buffer, long long Offset, int Length) |
virtual int | ReadV (const XrdOucIOVec *readV, int n) |
virtual XrdOucCacheIO * | Detach () |
virtual bool | ioActive () |
Virtual method of XrdOucCacheIO. Called to check if destruction needs to be done in a separate task. More... | |
virtual int | Fstat (struct stat &sbuff) |
virtual long long | FSize () |
![]() | |
IO (XrdOucCacheIO2 *io, XrdOucCacheStats &stats, Cache &cache) | |
virtual XrdOucCacheIO * | Base () |
Original data source. More... | |
virtual const char * | Path () |
Original data source URL. More... | |
virtual int | Sync () |
virtual int | Trunc (long long Offset) |
virtual int | Write (char *Buffer, long long Offset, int Length) |
virtual void | Update (XrdOucCacheIO2 &iocp) |
XrdSysTrace * | GetTrace () |
XrdOucCacheIO2 * | GetInput () |
![]() | |
virtual const char * | Location () |
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 | Write (XrdOucCacheIOCB &iocb, char *buff, long long offs, int wlen) |
virtual | ~XrdOucCacheIO2 () |
![]() | |
virtual void | Preread (long long Offset, int Length, int Opts=0) |
virtual void | Preread (aprParms &Parms) |
virtual | ~XrdOucCacheIO () |
Private Member Functions | |
int | initCachedStat (const char *path) |
Private Attributes | |
XrdSysMutex | m_mutex |
File * | m_file |
struct stat * | m_localStat |
Additional Inherited Members | |
![]() | |
XrdOucCacheStats | Statistics |
![]() | |
static const int | SingleUse = 0x0001 |
![]() | |
const char * | GetPath () |
![]() | |
XrdOucCacheStats & | m_statsGlobal |
reference to Cache statistics More... | |
Cache & | m_cache |
reference to Cache needed in detach More... | |
const char * | m_traceID |
std::string | m_path |
Downloads original file into a single file on local disk. Handles read requests as they come along.
XrdFileCache::IOEntireFile::IOEntireFile | ( | XrdOucCacheIO2 * | io, |
XrdOucCacheStats & | stats, | ||
Cache & | cache | ||
) |
Constructor.
XrdFileCache::IOEntireFile::~IOEntireFile | ( | ) |
Destructor.
|
virtual |
Detach itself from Cache. Note: this will delete the object.
Reimplemented from XrdOucCacheIO.
|
virtual |
Implements XrdOucCacheIO.
|
virtual |
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.
|
private |
|
virtual |
Virtual method of XrdOucCacheIO. Called to check if destruction needs to be done in a separate task.
Reimplemented from XrdOucCacheIO.
|
virtual |
Implements XrdOucCacheIO.
|
virtual |
Reimplemented from XrdOucCacheIO.
|
private |
|
private |
|
private |