XrdClientReadAheadMgr Class Reference

#include <XrdClientReadAhead.hh>

Inheritance diagram for XrdClientReadAheadMgr:

XrdClientReadAhead_pureseq XrdClientReadAhead_slidingavg List of all members.

Public Types

enum  XrdClient_RAStrategy

Public Member Functions

 XrdClientReadAheadMgr ()
virtual ~XrdClientReadAheadMgr ()
virtual int GetReadAheadHint (long long offset, long len, long long &raoffset, long &ralen, long blksize)=0
virtual int Reset ()=0
virtual void SetRASize (long bytes)
XrdClient_RAStrategy GetCurrentStrategy ()

Static Public Member Functions

static XrdClientReadAheadMgrCreateReadAheadMgr (XrdClient_RAStrategy strategy)
static bool TrimReadRequest (long long &offs, long &len, long rasize, long blksize)

Protected Attributes

long RASize
XrdClient_RAStrategy currstrategy

Detailed Description

Definition at line 18 of file XrdClientReadAhead.hh.


Member Enumeration Documentation

enum XrdClientReadAheadMgr::XrdClient_RAStrategy

Definition at line 20 of file XrdClientReadAhead.hh.


Constructor & Destructor Documentation

XrdClientReadAheadMgr::XrdClientReadAheadMgr (  )  [inline]

Definition at line 35 of file XrdClientReadAhead.hh.

References RASize.

virtual XrdClientReadAheadMgr::~XrdClientReadAheadMgr (  )  [inline, virtual]

Definition at line 36 of file XrdClientReadAhead.hh.


Member Function Documentation

XrdClientReadAheadMgr * XrdClientReadAheadMgr::CreateReadAheadMgr ( XrdClient_RAStrategy  strategy  )  [static]

Definition at line 254 of file XrdClientReadAhead.cc.

References currstrategy, RAStr_none, RAStr_pureseq, and RAStr_SlidingAvg.

Referenced by XrdClient::SetReadAheadStrategy().

virtual int XrdClientReadAheadMgr::GetReadAheadHint ( long long  offset,
long  len,
long long raoffset,
long ralen,
long  blksize 
) [pure virtual]

Referenced by XrdClient::Read().

virtual int XrdClientReadAheadMgr::Reset (  )  [pure virtual]

virtual void XrdClientReadAheadMgr::SetRASize ( long  bytes  )  [inline, virtual]

Definition at line 40 of file XrdClientReadAhead.hh.

References RASize.

Referenced by XrdClient::SetCacheParameters().

bool XrdClientReadAheadMgr::TrimReadRequest ( long long offs,
long len,
long  rasize,
long  blksize 
) [static]

Definition at line 21 of file XrdClientReadAhead.cc.

References long.

Referenced by XrdClientReadAhead_slidingavg::GetReadAheadHint(), XrdClientReadAhead_pureseq::GetReadAheadHint(), and XrdClient::Read().

XrdClient_RAStrategy XrdClientReadAheadMgr::GetCurrentStrategy (  )  [inline]

Definition at line 44 of file XrdClientReadAhead.hh.

References currstrategy.

Referenced by XrdClient::SetReadAheadStrategy().


Member Data Documentation

long XrdClientReadAheadMgr::RASize [protected]

Definition at line 27 of file XrdClientReadAhead.hh.

Referenced by XrdClientReadAhead_slidingavg::GetReadAheadHint(), XrdClientReadAhead_pureseq::GetReadAheadHint(), SetRASize(), and XrdClientReadAheadMgr().

XrdClient_RAStrategy XrdClientReadAheadMgr::currstrategy [protected]

Definition at line 28 of file XrdClientReadAhead.hh.

Referenced by CreateReadAheadMgr(), and GetCurrentStrategy().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:18 2011 for ROOT_528-00b_version by  doxygen 1.5.1