|
XRootD
|
#include <XrdPfcFile.hh>
Collaboration diagram for XrdPfc::File:Public Member Functions | |
| void | AddIO (IO *io) |
| void | BlockRemovedFromWriteQ (Block *) |
| Handle removal of a block from Cache's write queue. More... | |
| void | BlocksRemovedFromWriteQ (std::list< Block * > &) |
| Handle removal of a set of blocks from Cache's write queue. More... | |
| int | dec_ref_cnt () |
| bool | FinalizeSyncBeforeExit () |
| Returns true if any of blocks need sync. Called from Cache::dec_ref_cnt on zero ref cnt. More... | |
| int | Fstat (struct stat &sbuff) |
| int | get_ref_cnt () |
| size_t | GetAccessCnt () const |
| int | GetBlockSize () const |
| long long | GetFileSize () const |
| const Info::AStat * | GetLastAccessStats () const |
| const std::string & | GetLocalPath () const |
| XrdSysError * | GetLog () const |
| int | GetNBlocks () const |
| int | GetNDownloadedBlocks () const |
| int | GetPrefetchCountOnIO (IO *io) |
| long long | GetPrefetchedBytes () const |
| float | GetPrefetchScore () const |
| std::string | GetRemoteLocations () const |
| XrdSysTrace * | GetTrace () const |
| int | inc_ref_cnt () |
| long long | initiate_emergency_shutdown () |
| bool | ioActive (IO *io) |
| Initiate close. Return true if still IO active. Used in XrdPosixXrootd::Close() More... | |
| void | ioUpdated (IO *io) |
| Notification from IO that it has been updated (remote open). More... | |
| bool | is_in_emergency_shutdown () |
| const char * | lPath () const |
| Log path. More... | |
| void | Prefetch () |
| int | Read (IO *io, char *buff, long long offset, int size, ReadReqRH *rh) |
| Normal read. More... | |
| int | ReadV (IO *io, const XrdOucIOVec *readV, int readVnum, ReadReqRH *rh) |
| Vector read. More... | |
| const Stats & | RefStats () const |
| void | RemoveIO (IO *io) |
| void | RequestSyncOfDetachStats () |
| Flags that detach stats should be written out in final sync. Called from CacheIO upon Detach. More... | |
| void | StopPrefetchingOnIO (IO *io) |
| void | Sync () |
| Sync file cache inf o and output data with disk. More... | |
| void | WriteBlockToDisk (Block *b) |
Static Public Member Functions | |
| static File * | FileOpen (const std::string &path, long long offset, long long fileSize, XrdOucCacheIO *inputIO) |
| Static constructor that also does Open. Returns null ptr if Open fails. More... | |
Friends | |
| class | BlockResponseHandler |
| class | Cache |
| class | DirectResponseHandler |
Definition at line 202 of file XrdPfcFile.hh.
| void File::AddIO | ( | IO * | io | ) |
Definition at line 349 of file XrdPfcFile.cc.
References Debug, Error, XrdPfc::IO::GetLocation(), XrdPfc::Stats::IoAttach(), XrdSysCondVar::Lock(), TRACEF, and XrdSysCondVar::UnLock().
Referenced by XrdPfc::Cache::GetFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void File::BlockRemovedFromWriteQ | ( | Block * | b | ) |
Handle removal of a block from Cache's write queue.
Definition at line 211 of file XrdPfcFile.cc.
References XrdPfc::Block::m_offset, and TRACEF.
| void File::BlocksRemovedFromWriteQ | ( | std::list< Block * > & | blocks | ) |
Handle removal of a set of blocks from Cache's write queue.
Definition at line 219 of file XrdPfcFile.cc.
References TRACEF.
Referenced by XrdPfc::Cache::RemoveWriteQEntriesFor().
Here is the caller graph for this function:
|
inline |
Definition at line 288 of file XrdPfcFile.hh.
|
static |
Static constructor that also does Open. Returns null ptr if Open fails.
Definition at line 141 of file XrdPfcFile.cc.
References File.
Referenced by XrdPfc::Cache::GetFile().
Here is the caller graph for this function:| bool File::FinalizeSyncBeforeExit | ( | ) |
Returns true if any of blocks need sync. Called from Cache::dec_ref_cnt on zero ref cnt.
Definition at line 325 of file XrdPfcFile.cc.
References Debug, TRACEF, and XrdPfc::Info::WriteIOStatDetach().
Here is the call graph for this function:| int File::Fstat | ( | struct stat & | sbuff | ) |
Definition at line 632 of file XrdPfcFile.cc.
References XrdOssDF::Fstat().
Referenced by XrdPfc::Cache::ConsiderCached(), XrdPfc::IOFile::Fstat(), and XrdPfc::Cache::Stat().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 286 of file XrdPfcFile.hh.
|
inline |
Definition at line 276 of file XrdPfcFile.hh.
References XrdPfc::Info::GetAccessCnt().
Here is the call graph for this function:
|
inline |
Definition at line 277 of file XrdPfcFile.hh.
References XrdPfc::Info::GetBufferSize().
Here is the call graph for this function:
|
inline |
Definition at line 267 of file XrdPfcFile.hh.
Referenced by XrdPfc::IOFile::FSize().
Here is the caller graph for this function:
|
inline |
Definition at line 275 of file XrdPfcFile.hh.
References XrdPfc::Info::GetLastAccessStats().
Here is the call graph for this function:
|
inline |
Definition at line 262 of file XrdPfcFile.hh.
Referenced by XrdPfc::Cache::AddWriteTask(), and XrdPfc::Cache::ReleaseFile().
Here is the caller graph for this function:| XrdSysError * File::GetLog | ( | ) | const |
Definition at line 1702 of file XrdPfcFile.cc.
References XrdPfc::Cache::GetLog(), and XrdPfc::Cache::TheOne().
Here is the call graph for this function:
|
inline |
Definition at line 278 of file XrdPfcFile.hh.
References XrdPfc::Info::GetNBlocks().
Here is the call graph for this function:
|
inline |
Definition at line 279 of file XrdPfcFile.hh.
References XrdPfc::Info::GetNDownloadedBlocks().
Here is the call graph for this function:| int XrdPfc::File::GetPrefetchCountOnIO | ( | IO * | io | ) |
|
inline |
Definition at line 280 of file XrdPfcFile.hh.
| float File::GetPrefetchScore | ( | ) | const |
Definition at line 1697 of file XrdPfcFile.cc.
| std::string File::GetRemoteLocations | ( | ) | const |
Definition at line 1721 of file XrdPfcFile.cc.
| XrdSysTrace * File::GetTrace | ( | ) | const |
Definition at line 1707 of file XrdPfcFile.cc.
References XrdPfc::Cache::GetTrace(), and XrdPfc::Cache::TheOne().
Here is the call graph for this function:
|
inline |
Definition at line 287 of file XrdPfcFile.hh.
| long long File::initiate_emergency_shutdown | ( | ) |
Definition at line 154 of file XrdPfcFile.cc.
Referenced by XrdPfc::Cache::UnlinkFile().
Here is the caller graph for this function:| bool File::ioActive | ( | IO * | io | ) |
Initiate close. Return true if still IO active. Used in XrdPosixXrootd::Close()
Definition at line 242 of file XrdPfcFile.cc.
References Debug, Error, XrdPfc::IO::GetLocation(), XrdPfc::IO::m_active_read_reqs, TRACE, and TRACEF.
Referenced by XrdPfc::IOFile::ioActive().
Here is the call graph for this function:
Here is the caller graph for this function:| void File::ioUpdated | ( | IO * | io | ) |
Notification from IO that it has been updated (remote open).
Definition at line 233 of file XrdPfcFile.cc.
References XrdPfc::IO::GetLocation().
Referenced by XrdPfc::IOFile::Update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 291 of file XrdPfcFile.hh.
| const char * File::lPath | ( | ) | const |
Log path.
Definition at line 1609 of file XrdPfcFile.cc.
Referenced by XrdPfc::Cache::ProcessWriteTasks(), and XrdPfc::Cache::RemoveWriteQEntriesFor().
Here is the caller graph for this function:| void File::Prefetch | ( | ) |
Definition at line 1624 of file XrdPfcFile.cc.
References Debug, Error, XrdPfc::Info::TestBitWritten(), TRACEF, and TPC::Warning.
Referenced by XrdPfc::Cache::Prefetch().
Here is the call graph for this function:
Here is the caller graph for this function:Normal read.
Definition at line 817 of file XrdPfcFile.cc.
References XrdPfc::Stats::AddBytesHit(), Xrd::hex1, XrdPfc::Info::IsComplete(), XrdSysCondVar::Lock(), XrdPfc::ReadReqRH::m_seq_id, XrdOssDF::Read(), TRACEF, and XrdSysCondVar::UnLock().
Referenced by XrdPfc::IOFileBlock::Read().
Here is the call graph for this function:
Here is the caller graph for this function:| int File::ReadV | ( | IO * | io, |
| const XrdOucIOVec * | readV, | ||
| int | readVnum, | ||
| ReadReqRH * | rh | ||
| ) |
Vector read.
Definition at line 854 of file XrdPfcFile.cc.
References XrdPfc::Stats::AddBytesHit(), XrdPfc::Info::IsComplete(), XrdSysCondVar::Lock(), XrdOssDF::ReadV(), TRACEF, and XrdSysCondVar::UnLock().
Here is the call graph for this function:
|
inline |
Definition at line 281 of file XrdPfcFile.hh.
| void File::RemoveIO | ( | IO * | io | ) |
Definition at line 386 of file XrdPfcFile.cc.
References Debug, Error, XrdPfc::Stats::IoDetach(), XrdSysCondVar::Lock(), TRACEF, and XrdSysCondVar::UnLock().
Referenced by XrdPfc::Cache::ReleaseFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void File::RequestSyncOfDetachStats | ( | ) |
Flags that detach stats should be written out in final sync. Called from CacheIO upon Detach.
Definition at line 319 of file XrdPfcFile.cc.
Referenced by XrdPfc::IOFile::DetachFinalize().
Here is the caller graph for this function:| void XrdPfc::File::StopPrefetchingOnIO | ( | IO * | io | ) |
| void File::Sync | ( | ) |
Sync file cache inf o and output data with disk.
Definition at line 1223 of file XrdPfcFile.cc.
References Error, XrdOssDF::Fsync(), XrdPfc::Cache::GetInstance(), XrdPfc::Info::IsComplete(), XrdPfc::Info::SetBitSynced(), TRACEF, XrdPfc::Cache::UnlinkFile(), XrdPfc::Info::Write(), XrdPfc::Info::WriteIOStat(), and XrdOssOK.
Here is the call graph for this function:| void File::WriteBlockToDisk | ( | Block * | b | ) |
Definition at line 1137 of file XrdPfcFile.cc.
References Error, XrdPfc::Block::get_buff(), XrdPfc::Block::get_size(), XrdPfc::Cache::GetInstance(), XrdPfc::Block::has_cksums(), XrdPfc::Info::IsCkSumCache(), XrdPfc::Info::IsCkSumNet(), XrdPfc::Info::IsComplete(), XrdPfc::Configuration::m_flushCnt, XrdPfc::Block::m_offset, XrdPfc::Block::m_prefetch, XrdOssDF::pgWrite(), XrdPfc::Block::ref_cksum_vec(), XrdPfc::Cache::RefConfiguration(), XrdPfc::Block::req_cksum_net(), XrdPfc::Info::ResetCkSumNet(), XrdPfc::Info::SetBitPrefetch(), XrdPfc::Info::SetBitSynced(), XrdPfc::Info::SetBitWritten(), TRACEF, and XrdOssDF::Write().
Referenced by XrdPfc::Cache::ProcessWriteTasks().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 205 of file XrdPfcFile.hh.
|
friend |
Definition at line 204 of file XrdPfcFile.hh.
|
friend |
Definition at line 206 of file XrdPfcFile.hh.