![]() |
XRootD
|
#include <XrdPfcDirStateSnapshot.hh>
Public Member Functions | |
DataFsSnapshot () | |
DataFsSnapshot (const DataFsStateBase &b, time_t sshot_stats_reset_time) | |
void | dump () |
void | write_json_file (const std::string &fname, XrdOss &oss, bool include_preamble) |
Public Attributes | |
std::vector< DirStateElement > | m_dir_states |
time_t | m_sshot_stats_reset_time = 0 |
![]() | |
long long | m_disk_total = 0 |
long long | m_disk_used = 0 |
long long | m_file_usage = 0 |
long long | m_meta_total = 0 |
long long | m_meta_used = 0 |
time_t | m_usage_update_time = 0 |
Definition at line 35 of file XrdPfcDirStateSnapshot.hh.
|
inline |
Definition at line 40 of file XrdPfcDirStateSnapshot.hh.
|
inline |
Definition at line 41 of file XrdPfcDirStateSnapshot.hh.
void DataFsSnapshot::dump | ( | ) |
Definition at line 153 of file XrdPfcDirStateSnapshot.cc.
void DataFsSnapshot::write_json_file | ( | const std::string & | fname, |
XrdOss & | oss, | ||
bool | include_preamble | ||
) |
Definition at line 70 of file XrdPfcDirStateSnapshot.cc.
References XrdOssDF::Close(), XrdPfc::Cache::Conf(), XrdOss::Create(), ERRNO_AND_ERRSTR, Macaroons::Error, XrdOssDF::Ftruncate(), XrdPfc::Configuration::m_data_space, XrdPfc::Configuration::m_username, XrdOss::newFile(), XrdOssDF::Open(), XrdOucEnv::Put(), XrdPfc::Info::s_infoExtension, XrdPfc::Info::SetAllBitsSynced(), XrdPfc::Info::SetBufferSizeFileSizeAndCreationTime(), TRACE, XrdOssDF::Write(), XrdPfc::Info::Write(), XRDOSS_mkpath, and XrdOssOK.
Referenced by XrdPfc::ResourceMonitor::heart_beat().
std::vector<DirStateElement> XrdPfc::DataFsSnapshot::m_dir_states |
Definition at line 37 of file XrdPfcDirStateSnapshot.hh.
Referenced by XrdPfc::ResourceMonitor::heart_beat().
time_t XrdPfc::DataFsSnapshot::m_sshot_stats_reset_time = 0 |
Definition at line 38 of file XrdPfcDirStateSnapshot.hh.