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 (XrdOucCacheIO &io, XrdOucCacheStats &stats, Cache &cache) | |
| Constructor. | |
| ~IOEntireFile () | |
| Destructor. | |
| 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. | |
Protected Member Functions | |
| virtual void | StartPrefetch () |
| Run prefetch outside constructor. | |
Private Attributes | |
| Prefetch * | m_prefetch |
Downloads original file into a single file on local disk. Handles read requests as they come along.
| XrdFileCache::IOEntireFile::IOEntireFile | ( | XrdOucCacheIO & | io, | |
| XrdOucCacheStats & | stats, | |||
| Cache & | cache | |||
| ) |
Constructor.
| XrdFileCache::IOEntireFile::~IOEntireFile | ( | ) |
Destructor.
| virtual XrdOucCacheIO* XrdFileCache::IOEntireFile::Detach | ( | ) | [virtual] |
Detach itself from Cache. Note: this will delete the object.
Reimplemented from XrdOucCacheIO.
| virtual bool XrdFileCache::IOEntireFile::ioActive | ( | ) | [virtual] |
Virtual method of XrdOucCacheIO. Called to check if destruction needs to be done in a separate task.
Reimplemented from XrdOucCacheIO.
| virtual int XrdFileCache::IOEntireFile::Read | ( | char * | Buffer, | |
| long long | Offset, | |||
| int | Length | |||
| ) | [virtual] |
Pass Read request to the corresponding Prefetch object.
| Buffer | ||
| Offset | ||
| Length |
Implements XrdOucCacheIO.
| virtual int XrdFileCache::IOEntireFile::ReadV | ( | const XrdOucIOVec * | readV, | |
| int | n | |||
| ) | [virtual] |
Pass ReadV request to the corresponding Prefetch object.
| readV | ||
| n | number of XrdOucIOVecs |
Reimplemented from XrdOucCacheIO.
| virtual void XrdFileCache::IOEntireFile::StartPrefetch | ( | ) | [protected, virtual] |
Run prefetch outside constructor.
Reimplemented from XrdFileCache::IO.
Prefetch* XrdFileCache::IOEntireFile::m_prefetch [private] |
1.6.1