36#include "XrdSys/XrdSysHeaders.hh"
63 long long end_offs,
long long ticksnow,
64 bool placeholder=
false);
72 return ( (end_offs >= begin_offs) &&
79 return ( (end_offs > begin_offs) &&
98 inline bool GetInterval(
const void *buffer,
long long begin_offs,
103 end_offs - begin_offs + 1);
110 long long end_offs) {
112 long long b = -1,
e,
l;
114 if (begin_offs > end_offs)
return 0;
193 long long begin_offs);
207 long long end_offs,
bool PerfCalc,
215 long long &bytessubmitted,
222 long long &misscount,
228 long long &readreqcnt,
231 float &bytesusefulness
244 cout <<
"Low level caching info:" << endl;
245 cout <<
" StallsRate=" <<
fMissRate << endl;
246 cout <<
" StallsCount=" <<
fMissCount << endl;
260 long long end_offs,
bool pinned=
false);
263 void RemoveItems(
long long begin_offs,
long long end_offs,
bool remove_overlapped =
false);
276 void *
FindBlk(
long long begin_offs,
long long end_offs);
XrdClientVector< XrdClientReadCacheItem * > ItemVect
XrdClientVector< XrdClientCacheInterval > XrdClientIntvList
long GetPartialInterval(const void *buffer, long long begin_offs, long long end_offs)
bool ContainsOffset(long long offs)
bool ContainsInterval(long long begin_offs, long long end_offs)
~XrdClientReadCacheItem()
bool IntersectInterval(long long begin_offs, long long end_offs)
XrdClientReadCacheItem(const void *buffer, long long begin_offs, long long end_offs, long long ticksnow, bool placeholder=false)
long long GetTimestampTicks()
bool GetInterval(const void *buffer, long long begin_offs, long long end_offs)
void Touch(long long ticksnow)
bool ContainedInInterval(long long begin_offs, long long end_offs)
int FindInsertionApprox_rec(int startidx, int endidx, long long begin_offs)
long long fTotalByteCount
void * FindBlk(long long begin_offs, long long end_offs)
void RemovePlaceholders()
int FindInsertionApprox(long long begin_offs)
long long fBytesSubmitted
bool WillFit(long long bc)
long long GetTotalByteCount()
bool MakeFreeSpace(long long bytes)
long long GetTimestampTick()
void UnPinCacheBlk(long long begin_offs, long long end_offs)
long long fTimestampTickCounter
void RemoveItems(long long begin_offs, long long end_offs, bool remove_overlapped=false)
void SetBlkRemovalPolicy(int p)
void GetInfo(int &size, long long &bytessubmitted, long long &byteshit, long long &misscount, float &missrate, long long &readreqcnt, float &bytesusefulness)
bool SubmitRawData(const void *buffer, long long begin_offs, long long end_offs, bool pinned=false)
void RemoveItems(bool leavepinned=true)
long GetDataIfPresent(const void *buffer, long long begin_offs, long long end_offs, bool PerfCalc, XrdClientIntvList &missingblks, long &outstandingblks)
void SubmitXMessage(XrdClientMessage *xmsg, long long begin_offs, long long end_offs)
void UpdatePerfCounters()
void PutPlaceholder(long long begin_offs, long long end_offs)