Status of cached file. Can be read from and written into a binary file.
More...
#include <XrdFileCacheInfo.hh>
|
XrdCl::Log * | clLog () const |
|
|
static unsigned char | cfiBIT (int n) |
|
Status of cached file. Can be read from and written into a binary file.
§ Info()
XrdFileCache::Info::Info |
( |
long long |
bufferSize | ) |
|
§ ~Info()
XrdFileCache::Info::~Info |
( |
| ) |
|
§ AppendIOStat()
void XrdFileCache::Info::AppendIOStat |
( |
AStat & |
stat, |
|
|
XrdOssDF * |
fp |
|
) |
| |
Append access time, and cache statistics.
§ cfiBIT()
static unsigned char XrdFileCache::Info::cfiBIT |
( |
int |
n | ) |
|
|
inlinestaticprivate |
§ CheckComplete()
void XrdFileCache::Info::CheckComplete |
( |
| ) |
|
|
inline |
§ clLog()
XrdCl::Log* XrdFileCache::Info::clLog |
( |
| ) |
const |
|
inlineprotected |
§ GetAccessCnt()
int XrdFileCache::Info::GetAccessCnt |
( |
| ) |
|
|
inline |
§ GetBufferSize()
long long XrdFileCache::Info::GetBufferSize |
( |
| ) |
const |
|
inline |
Get prefetch buffer size.
§ GetHeaderSize()
int XrdFileCache::Info::GetHeaderSize |
( |
| ) |
const |
§ GetLatestDetachTime()
bool XrdFileCache::Info::GetLatestDetachTime |
( |
time_t & |
t, |
|
|
XrdOssDF * |
fp |
|
) |
| const |
§ GetNDownloadedBlocks()
int XrdFileCache::Info::GetNDownloadedBlocks |
( |
| ) |
const |
|
inline |
Get number of downloaded blocks.
§ GetNDownloadedBytes()
long long XrdFileCache::Info::GetNDownloadedBytes |
( |
| ) |
const |
|
inline |
Get number of downloaded bytes.
§ GetSizeInBits()
int XrdFileCache::Info::GetSizeInBits |
( |
| ) |
const |
|
inline |
Get number of blocks represented in download-state bit-vector.
§ GetSizeInBytes()
int XrdFileCache::Info::GetSizeInBytes |
( |
| ) |
const |
|
inline |
Get size of download-state bit-vector in bytes.
§ GetVersion()
int XrdFileCache::Info::GetVersion |
( |
| ) |
|
|
inline |
§ IsAnythingEmptyInRng()
bool XrdFileCache::Info::IsAnythingEmptyInRng |
( |
int |
firstIdx, |
|
|
int |
lastIdx |
|
) |
| const |
|
inline |
Check download status in given block range.
§ IsComplete()
bool XrdFileCache::Info::IsComplete |
( |
| ) |
const |
|
inline |
§ Read()
int XrdFileCache::Info::Read |
( |
XrdOssDF * |
fp | ) |
|
Rea load content from cinfo file into this object.
- Parameters
-
- Returns
- number of bytes read
§ ResizeBits()
void XrdFileCache::Info::ResizeBits |
( |
int |
n | ) |
|
Reserve buffer for fileSize/bufferSize bytes.
- Parameters
-
§ SetBitFetched()
void XrdFileCache::Info::SetBitFetched |
( |
int |
i | ) |
|
|
inline |
Mark block as downloaded.
- Parameters
-
§ SetBitWriteCalled()
void XrdFileCache::Info::SetBitWriteCalled |
( |
int |
i | ) |
|
|
inline |
Mark block as disk written.
- Parameters
-
§ TestBit()
bool XrdFileCache::Info::TestBit |
( |
int |
i | ) |
const |
|
inline |
Test if block at the given index is downlaoded.
§ WriteHeader()
void XrdFileCache::Info::WriteHeader |
( |
XrdOssDF * |
fp | ) |
|
Write number of blocks and prefetch buffer size.
§ m_accessCnt
int XrdFileCache::Info::m_accessCnt |
|
protected |
number of written AStat structs
§ m_buff_fetched
unsigned char* XrdFileCache::Info::m_buff_fetched |
|
protected |
§ m_buff_write_called
unsigned char* XrdFileCache::Info::m_buff_write_called |
|
protected |
disk written state vector
§ m_bufferSize
long long XrdFileCache::Info::m_bufferSize |
|
protected |
§ m_complete
bool XrdFileCache::Info::m_complete |
|
protected |
§ m_infoExtension
const char* XrdFileCache::Info::m_infoExtension |
|
static |
§ m_sizeInBits
int XrdFileCache::Info::m_sizeInBits |
|
protected |
§ m_version
int XrdFileCache::Info::m_version |
|
protected |
Cache statistics and time of access.
info version
The documentation for this class was generated from the following file: