XRootD
XrdPfc::DataFsState Class Reference
+ Collaboration diagram for XrdPfc::DataFsState:

Public Member Functions

 DataFsState ()
 
void dump_recursively ()
 
DirStatefind_dirstate_for_lfn (const std::string &lfn)
 
int get_max_depth () const
 
DirStateget_root ()
 
void reset_stats ()
 
void upward_propagate_stats ()
 
void upward_propagate_usage_purged ()
 

Detailed Description

Definition at line 178 of file XrdPfcPurge.cc.

Constructor & Destructor Documentation

◆ DataFsState()

XrdPfc::DataFsState::DataFsState ( )
inline

Definition at line 185 of file XrdPfcPurge.cc.

185  :
186  m_max_depth ( Cache::Conf().m_dirStatsStoreDepth ),
187  m_root ( m_max_depth ),
188  m_prev_time ( time(0) )
189  {}
static const Configuration & Conf()
Definition: XrdPfc.cc:162

Member Function Documentation

◆ dump_recursively()

void XrdPfc::DataFsState::dump_recursively ( )
inline

Definition at line 204 of file XrdPfcPurge.cc.

205  {
206  time_t now = time(0);
207 
208  printf("DataFsState::dump_recursively epoch = %lld delta_t = %lld max_depth = %d\n",
209  (long long) now, (long long) (now - m_prev_time), m_max_depth);
210 
211  m_prev_time = now;
212 
213  m_root.dump_recursively("root");
214  }
void dump_recursively(const char *name)
Definition: XrdPfcPurge.cc:160

References XrdPfc::DirState::dump_recursively().

Referenced by XrdPfc::Cache::Purge().

+ 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)
inline

Definition at line 195 of file XrdPfcPurge.cc.

196  {
197  return m_root.find_path(lfn, m_max_depth, true, true);
198  }
DirState * find_path(const std::string &path, int max_depth, bool parse_as_lfn, bool create_subdirs)
Definition: XrdPfcPurge.cc:107

References XrdPfc::DirState::find_path().

+ Here is the call graph for this function:

◆ get_max_depth()

int XrdPfc::DataFsState::get_max_depth ( ) const
inline

Definition at line 191 of file XrdPfcPurge.cc.

191 { return m_max_depth; }

◆ get_root()

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

Definition at line 193 of file XrdPfcPurge.cc.

193 { return & m_root; }

Referenced by XrdPfc::Cache::Purge().

+ Here is the caller graph for this function:

◆ reset_stats()

void XrdPfc::DataFsState::reset_stats ( )
inline

Definition at line 200 of file XrdPfcPurge.cc.

200 { m_root.reset_stats(); }

References XrdPfc::DirState::reset_stats().

+ Here is the call graph for this function:

◆ upward_propagate_stats()

void XrdPfc::DataFsState::upward_propagate_stats ( )
inline

Definition at line 201 of file XrdPfcPurge.cc.

201 { m_root.upward_propagate_stats(); }
void upward_propagate_stats()
Definition: XrdPfcPurge.cc:135

References XrdPfc::DirState::upward_propagate_stats().

+ Here is the call graph for this function:

◆ upward_propagate_usage_purged()

void XrdPfc::DataFsState::upward_propagate_usage_purged ( )
inline

Definition at line 202 of file XrdPfcPurge.cc.

202 { m_root.upward_propagate_usage_purged(); }
long long upward_propagate_usage_purged()
Definition: XrdPfcPurge.cc:147

References XrdPfc::DirState::upward_propagate_usage_purged().

Referenced by XrdPfc::Cache::Purge().

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

The documentation for this class was generated from the following file: