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