xrootd
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
XrdFileCache::IOEntireFile Class Reference

Downloads original file into a single file on local disk. Handles read requests as they come along. More...

#include <XrdFileCacheIOEntireFile.hh>

Inheritance diagram for XrdFileCache::IOEntireFile:
Inheritance graph
[legend]
Collaboration diagram for XrdFileCache::IOEntireFile:
Collaboration graph
[legend]

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 XrdOucCacheIODetach ()
 
virtual bool ioActive ()
 Virtual method of XrdOucCacheIO. Called to check if destruction needs to be done in a separate task. More...
 
- Public Member Functions inherited from XrdFileCache::IO
 IO (XrdOucCacheIO &io, XrdOucCacheStats &stats, Cache &cache)
 
virtual XrdOucCacheIOBase ()
 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)
 
- Public Member Functions inherited from XrdOucCacheIO
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...
 
- Protected Member Functions inherited from XrdFileCache::IO
XrdCl::Log * clLog () const
 

Private Attributes

Prefetchm_prefetch
 

Additional Inherited Members

- Public Attributes inherited from XrdOucCacheIO
XrdOucCacheStats Statistics
 
- Static Public Attributes inherited from XrdOucCacheIO
static const int SingleUse = 0x0001
 
- Protected Attributes inherited from XrdFileCache::IO
XrdOucCacheIOm_io
 original data source More...
 
XrdOucCacheStatsm_statsGlobal
 reference to Cache statistics More...
 
Cachem_cache
 reference to Cache needed in detach More...
 

Detailed Description

Downloads original file into a single file on local disk. Handles read requests as they come along.

Constructor & Destructor Documentation

XrdFileCache::IOEntireFile::IOEntireFile ( XrdOucCacheIO io,
XrdOucCacheStats stats,
Cache cache 
)

Constructor.

XrdFileCache::IOEntireFile::~IOEntireFile ( )

Destructor.

Member Function Documentation

virtual XrdOucCacheIO* XrdFileCache::IOEntireFile::Detach ( )
virtual

Detach itself from Cache. Note: this will delete the object.

Returns
original source XrdPosixFile

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.

Parameters
Buffer
Offset
Length
Returns
number of bytes read

Implements XrdOucCacheIO.

virtual int XrdFileCache::IOEntireFile::ReadV ( const XrdOucIOVec readV,
int  n 
)
virtual

Pass ReadV request to the corresponding Prefetch object.

Parameters
readV
nnumber of XrdOucIOVecs
Returns
total bytes read

Reimplemented from XrdOucCacheIO.

virtual void XrdFileCache::IOEntireFile::StartPrefetch ( )
protectedvirtual

Run prefetch outside constructor.

Reimplemented from XrdFileCache::IO.

Member Data Documentation

Prefetch* XrdFileCache::IOEntireFile::m_prefetch
private

The documentation for this class was generated from the following file: