Logo ROOT   6.07/09
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdClientReadCache Class Reference

Definition at line 161 of file XrdClientReadCache.hh.

Public Types

enum  { kRmBlk_LRU = 0, kRmBlk_LeastOffs, kRmBlk_FIFO }
 

Public Member Functions

 XrdClientReadCache ()
 
 ~XrdClientReadCache ()
 
voidFindBlk (long long begin_offs, long long end_offs)
 
long GetDataIfPresent (const void *buffer, long long begin_offs, long long end_offs, bool PerfCalc, XrdClientIntvList &missingblks, long &outstandingblks)
 
void GetInfo (int &size, long long &bytessubmitted, long long &byteshit, long long &misscount, float &missrate, long long &readreqcnt, float &bytesusefulness)
 
long long GetTotalByteCount ()
 
void PrintCache ()
 
void PrintPerfCounters ()
 
void PutPlaceholder (long long begin_offs, long long end_offs)
 
void RemoveItems (bool leavepinned=true)
 
void RemoveItems (long long begin_offs, long long end_offs, bool remove_overlapped=false)
 
void RemovePlaceholders ()
 
void SetBlkRemovalPolicy (int p)
 
void SetSize (int sz)
 
bool SubmitRawData (const void *buffer, long long begin_offs, long long end_offs, bool pinned=false)
 
void SubmitXMessage (XrdClientMessage *xmsg, long long begin_offs, long long end_offs)
 
void UnPinCacheBlk (long long begin_offs, long long end_offs)
 
bool WillFit (long long bc)
 

Private Member Functions

int FindInsertionApprox (long long begin_offs)
 
int FindInsertionApprox_rec (int startidx, int endidx, long long begin_offs)
 
long long GetTimestampTick ()
 
bool MakeFreeSpace (long long bytes)
 
bool RemoveFirstItem ()
 
bool RemoveItem ()
 
bool RemoveLRUItem ()
 
void UpdatePerfCounters ()
 

Private Attributes

int fBlkRemPolicy
 
long long fBytesHit
 
long long fBytesSubmitted
 
float fBytesUsefulness
 
ItemVect fItems
 
long long fMaxCacheSize
 
long long fMissCount
 
float fMissRate
 
XrdSysRecMutex fMutex
 
long long fReadsCounter
 
long long fTimestampTickCounter
 
long long fTotalByteCount
 

#include </mnt/vdb/lsf/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/proof/xrdinc/XrdClient/XrdClientReadCache.hh>

Member Enumeration Documentation

anonymous enum
Enumerator
kRmBlk_LRU 
kRmBlk_LeastOffs 
kRmBlk_FIFO 

Definition at line 197 of file XrdClientReadCache.hh.

Constructor & Destructor Documentation

XrdClientReadCache::XrdClientReadCache ( )
XrdClientReadCache::~XrdClientReadCache ( )

Member Function Documentation

void* XrdClientReadCache::FindBlk ( long long  begin_offs,
long long  end_offs 
)
int XrdClientReadCache::FindInsertionApprox ( long long  begin_offs)
private
int XrdClientReadCache::FindInsertionApprox_rec ( int  startidx,
int  endidx,
long long  begin_offs 
)
private
long XrdClientReadCache::GetDataIfPresent ( const void buffer,
long long  begin_offs,
long long  end_offs,
bool  PerfCalc,
XrdClientIntvList missingblks,
long &  outstandingblks 
)
void XrdClientReadCache::GetInfo ( int &  size,
long long &  bytessubmitted,
long long &  byteshit,
long long &  misscount,
float &  missrate,
long long &  readreqcnt,
float &  bytesusefulness 
)
long long XrdClientReadCache::GetTimestampTick ( )
private
long long XrdClientReadCache::GetTotalByteCount ( )
inline

Definition at line 234 of file XrdClientReadCache.hh.

bool XrdClientReadCache::MakeFreeSpace ( long long  bytes)
private
void XrdClientReadCache::PrintCache ( )
void XrdClientReadCache::PrintPerfCounters ( )
inline

Definition at line 241 of file XrdClientReadCache.hh.

void XrdClientReadCache::PutPlaceholder ( long long  begin_offs,
long long  end_offs 
)
bool XrdClientReadCache::RemoveFirstItem ( )
private
bool XrdClientReadCache::RemoveItem ( )
private
void XrdClientReadCache::RemoveItems ( bool  leavepinned = true)
void XrdClientReadCache::RemoveItems ( long long  begin_offs,
long long  end_offs,
bool  remove_overlapped = false 
)
bool XrdClientReadCache::RemoveLRUItem ( )
private
void XrdClientReadCache::RemovePlaceholders ( )
void XrdClientReadCache::SetBlkRemovalPolicy ( int  p)
inline

Definition at line 271 of file XrdClientReadCache.hh.

void XrdClientReadCache::SetSize ( int  sz)
inline

Definition at line 267 of file XrdClientReadCache.hh.

bool XrdClientReadCache::SubmitRawData ( const void buffer,
long long  begin_offs,
long long  end_offs,
bool  pinned = false 
)
void XrdClientReadCache::SubmitXMessage ( XrdClientMessage xmsg,
long long  begin_offs,
long long  end_offs 
)
void XrdClientReadCache::UnPinCacheBlk ( long long  begin_offs,
long long  end_offs 
)
void XrdClientReadCache::UpdatePerfCounters ( )
inlineprivate

Definition at line 184 of file XrdClientReadCache.hh.

bool XrdClientReadCache::WillFit ( long long  bc)
inline

Definition at line 279 of file XrdClientReadCache.hh.

Member Data Documentation

int XrdClientReadCache::fBlkRemPolicy
private

Definition at line 173 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fBytesHit
private

Definition at line 164 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fBytesSubmitted
private

Definition at line 165 of file XrdClientReadCache.hh.

float XrdClientReadCache::fBytesUsefulness
private

Definition at line 166 of file XrdClientReadCache.hh.

ItemVect XrdClientReadCache::fItems
private

Definition at line 167 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fMaxCacheSize
private

Definition at line 168 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fMissCount
private

Definition at line 169 of file XrdClientReadCache.hh.

float XrdClientReadCache::fMissRate
private

Definition at line 170 of file XrdClientReadCache.hh.

XrdSysRecMutex XrdClientReadCache::fMutex
private

Definition at line 171 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fReadsCounter
private

Definition at line 172 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fTimestampTickCounter
private

Definition at line 174 of file XrdClientReadCache.hh.

long long XrdClientReadCache::fTotalByteCount
private

Definition at line 175 of file XrdClientReadCache.hh.


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