Logo ROOT   6.10/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/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/proof/xrdinc/XrdClient/XrdClientReadCache.hh>

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kRmBlk_LRU 
kRmBlk_LeastOffs 
kRmBlk_FIFO 

Definition at line 197 of file XrdClientReadCache.hh.

Constructor & Destructor Documentation

◆ XrdClientReadCache()

XrdClientReadCache::XrdClientReadCache ( )

◆ ~XrdClientReadCache()

XrdClientReadCache::~XrdClientReadCache ( )

Member Function Documentation

◆ FindBlk()

void* XrdClientReadCache::FindBlk ( long long  begin_offs,
long long  end_offs 
)

◆ FindInsertionApprox()

int XrdClientReadCache::FindInsertionApprox ( long long  begin_offs)
private

◆ FindInsertionApprox_rec()

int XrdClientReadCache::FindInsertionApprox_rec ( int  startidx,
int  endidx,
long long  begin_offs 
)
private

◆ GetDataIfPresent()

long XrdClientReadCache::GetDataIfPresent ( const void buffer,
long long  begin_offs,
long long  end_offs,
bool  PerfCalc,
XrdClientIntvList missingblks,
long &  outstandingblks 
)

◆ GetInfo()

void XrdClientReadCache::GetInfo ( int &  size,
long long &  bytessubmitted,
long long &  byteshit,
long long &  misscount,
float &  missrate,
long long &  readreqcnt,
float &  bytesusefulness 
)

◆ GetTimestampTick()

long long XrdClientReadCache::GetTimestampTick ( )
private

◆ GetTotalByteCount()

long long XrdClientReadCache::GetTotalByteCount ( )
inline

Definition at line 234 of file XrdClientReadCache.hh.

◆ MakeFreeSpace()

bool XrdClientReadCache::MakeFreeSpace ( long long  bytes)
private

◆ PrintCache()

void XrdClientReadCache::PrintCache ( )

◆ PrintPerfCounters()

void XrdClientReadCache::PrintPerfCounters ( )
inline

Definition at line 241 of file XrdClientReadCache.hh.

◆ PutPlaceholder()

void XrdClientReadCache::PutPlaceholder ( long long  begin_offs,
long long  end_offs 
)

◆ RemoveFirstItem()

bool XrdClientReadCache::RemoveFirstItem ( )
private

◆ RemoveItem()

bool XrdClientReadCache::RemoveItem ( )
private

◆ RemoveItems() [1/2]

void XrdClientReadCache::RemoveItems ( bool  leavepinned = true)

◆ RemoveItems() [2/2]

void XrdClientReadCache::RemoveItems ( long long  begin_offs,
long long  end_offs,
bool  remove_overlapped = false 
)

◆ RemoveLRUItem()

bool XrdClientReadCache::RemoveLRUItem ( )
private

◆ RemovePlaceholders()

void XrdClientReadCache::RemovePlaceholders ( )

◆ SetBlkRemovalPolicy()

void XrdClientReadCache::SetBlkRemovalPolicy ( int  p)
inline

Definition at line 271 of file XrdClientReadCache.hh.

◆ SetSize()

void XrdClientReadCache::SetSize ( int  sz)
inline

Definition at line 267 of file XrdClientReadCache.hh.

◆ SubmitRawData()

bool XrdClientReadCache::SubmitRawData ( const void buffer,
long long  begin_offs,
long long  end_offs,
bool  pinned = false 
)

◆ SubmitXMessage()

void XrdClientReadCache::SubmitXMessage ( XrdClientMessage xmsg,
long long  begin_offs,
long long  end_offs 
)

◆ UnPinCacheBlk()

void XrdClientReadCache::UnPinCacheBlk ( long long  begin_offs,
long long  end_offs 
)

◆ UpdatePerfCounters()

void XrdClientReadCache::UpdatePerfCounters ( )
inlineprivate

Definition at line 184 of file XrdClientReadCache.hh.

◆ WillFit()

bool XrdClientReadCache::WillFit ( long long  bc)
inline

Definition at line 279 of file XrdClientReadCache.hh.

Member Data Documentation

◆ fBlkRemPolicy

int XrdClientReadCache::fBlkRemPolicy
private

Definition at line 173 of file XrdClientReadCache.hh.

◆ fBytesHit

long long XrdClientReadCache::fBytesHit
private

Definition at line 164 of file XrdClientReadCache.hh.

◆ fBytesSubmitted

long long XrdClientReadCache::fBytesSubmitted
private

Definition at line 165 of file XrdClientReadCache.hh.

◆ fBytesUsefulness

float XrdClientReadCache::fBytesUsefulness
private

Definition at line 166 of file XrdClientReadCache.hh.

◆ fItems

ItemVect XrdClientReadCache::fItems
private

Definition at line 167 of file XrdClientReadCache.hh.

◆ fMaxCacheSize

long long XrdClientReadCache::fMaxCacheSize
private

Definition at line 168 of file XrdClientReadCache.hh.

◆ fMissCount

long long XrdClientReadCache::fMissCount
private

Definition at line 169 of file XrdClientReadCache.hh.

◆ fMissRate

float XrdClientReadCache::fMissRate
private

Definition at line 170 of file XrdClientReadCache.hh.

◆ fMutex

XrdSysRecMutex XrdClientReadCache::fMutex
private

Definition at line 171 of file XrdClientReadCache.hh.

◆ fReadsCounter

long long XrdClientReadCache::fReadsCounter
private

Definition at line 172 of file XrdClientReadCache.hh.

◆ fTimestampTickCounter

long long XrdClientReadCache::fTimestampTickCounter
private

Definition at line 174 of file XrdClientReadCache.hh.

◆ fTotalByteCount

long long XrdClientReadCache::fTotalByteCount
private

Definition at line 175 of file XrdClientReadCache.hh.


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