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]
List of all members.

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 XrdOucCacheIODetach ()
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

Prefetchm_prefetch

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 
n number of XrdOucIOVecs
Returns:
total bytes read

Reimplemented from XrdOucCacheIO.

virtual void XrdFileCache::IOEntireFile::StartPrefetch (  )  [protected, virtual]

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:
Generated on 12 Dec 2014 for xrootd by  doxygen 1.4.7