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 (XrdOucCacheIO &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... | |
![]() | |
IO (XrdOucCacheIO &io, XrdOucCacheStats &stats, Cache &cache) | |
virtual XrdOucCacheIO * | Base () |
Original data source. More... | |
virtual long long | FSize () |
Original data source URL. 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 | Preread (long long Offset, int Length, int Opts=0) |
virtual void | Preread (aprParms &Parms) |
virtual | ~XrdOucCacheIO () |
Protected Member Functions | |
virtual void | StartPrefetch () |
Run prefetch outside constructor. More... | |
![]() | |
XrdCl::Log * | clLog () const |
Private Attributes | |
Prefetch * | m_prefetch |
Additional Inherited Members | |
![]() | |
XrdOucCacheStats | Statistics |
![]() | |
static const int | SingleUse = 0x0001 |
![]() | |
XrdOucCacheIO & | m_io |
original data source More... | |
XrdOucCacheStats & | m_statsGlobal |
reference to Cache statistics More... | |
Cache & | m_cache |
reference to Cache needed in detach More... | |
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 |
Detach itself from Cache. Note: this will delete the object.
Reimplemented from XrdOucCacheIO.
|
virtual |
Virtual method of XrdOucCacheIO. Called to check if destruction needs to be done in a separate task.
Reimplemented from XrdOucCacheIO.
|
virtual |
Pass Read request to the corresponding Prefetch object.
Buffer | |
Offset | |
Length |
Implements XrdOucCacheIO.
|
virtual |
Pass ReadV request to the corresponding Prefetch object.
readV | |
n | number of XrdOucIOVecs |
Reimplemented from XrdOucCacheIO.
|
protectedvirtual |
Run prefetch outside constructor.
Reimplemented from XrdFileCache::IO.
|
private |