XRootD
XrdPfc::DataFsState Struct Reference

#include <XrdPfcDirState.hh>

+ Inheritance diagram for XrdPfc::DataFsState:
+ Collaboration diagram for XrdPfc::DataFsState:

Public Member Functions

 DataFsState ()
 
void apply_stats_to_usages ()
 
void dump_recursively (int max_depth) const
 
DirStatefind_dirstate_for_lfn (const std::string &lfn, DirState **last_existing_dir=nullptr)
 
DirStateget_root ()
 
void reset_stats ()
 
void upward_propagate_stats_and_times ()
 

Public Attributes

DirState m_root
 
- Public Attributes inherited from XrdPfc::DataFsStateBase
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_stats_reset_time = 0
 
time_t m_usage_update_time = 0
 

Detailed Description

Definition at line 182 of file XrdPfcDirState.hh.

Constructor & Destructor Documentation

◆ DataFsState()

XrdPfc::DataFsState::DataFsState ( )
inline

Definition at line 186 of file XrdPfcDirState.hh.

186 : m_root() {}

Member Function Documentation

◆ apply_stats_to_usages()

void DataFsState::apply_stats_to_usages ( )

Definition at line 225 of file XrdPfcDirState.cc.

226 {
227  m_usage_update_time = time(0);
229 }
void apply_stats_to_usages()

References XrdPfc::DirState::apply_stats_to_usages(), m_root, and XrdPfc::DataFsStateBase::m_usage_update_time.

Referenced by XrdPfc::ResourceMonitor::heart_beat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_recursively()

void DataFsState::dump_recursively ( int  max_depth) const

Definition at line 237 of file XrdPfcDirState.cc.

238 {
239  if (max_depth < 0)
240  max_depth = 4096;
241 
242  printf("DataFsState::dump_recursively delta_t = %lld, max_dump_depth = %d\n",
243  (long long)(m_usage_update_time - m_stats_reset_time), max_depth);
244 
245  m_root.dump_recursively("root", max_depth);
246 }
void dump_recursively(const char *name, int max_depth) const

References XrdPfc::DirState::dump_recursively(), m_root, XrdPfc::DataFsStateBase::m_stats_reset_time, and XrdPfc::DataFsStateBase::m_usage_update_time.

Referenced by XrdPfc::ResourceMonitor::heart_beat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_dirstate_for_lfn()

DirState* XrdPfc::DataFsState::find_dirstate_for_lfn ( const std::string &  lfn,
DirState **  last_existing_dir = nullptr 
)
inline

Definition at line 190 of file XrdPfcDirState.hh.

191  {
192  return m_root.find_path(lfn, -1, true, true, last_existing_dir);
193  }
DirState * find_path(const std::string &path, int max_depth, bool parse_as_lfn, bool create_subdirs, DirState **last_existing_dir=nullptr)

References XrdPfc::DirState::find_path(), and m_root.

Referenced by XrdPfc::ResourceMonitor::process_queues().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_root()

DirState* XrdPfc::DataFsState::get_root ( )
inline

Definition at line 188 of file XrdPfcDirState.hh.

188 { return & m_root; }

References m_root.

Referenced by XrdPfc::ResourceMonitor::heart_beat(), XrdPfc::ResourceMonitor::perform_initial_scan(), XrdPfc::ResourceMonitor::perform_purge_check(), and XrdPfc::ResourceMonitor::process_queues().

+ Here is the caller graph for this function:

◆ reset_stats()

void DataFsState::reset_stats ( )

Definition at line 231 of file XrdPfcDirState.cc.

232 {
234  m_stats_reset_time = time(0);
235 }

References m_root, XrdPfc::DataFsStateBase::m_stats_reset_time, and XrdPfc::DirState::reset_stats().

Referenced by XrdPfc::ResourceMonitor::heart_beat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upward_propagate_stats_and_times()

void DataFsState::upward_propagate_stats_and_times ( )

Definition at line 220 of file XrdPfcDirState.cc.

221 {
223 }
void upward_propagate_stats_and_times()

References m_root, and XrdPfc::DirState::upward_propagate_stats_and_times().

Referenced by XrdPfc::ResourceMonitor::heart_beat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_root


The documentation for this struct was generated from the following files: