XRootD
Loading...
Searching...
No Matches
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:165

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 }

◆ 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 }

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; }

◆ reset_stats()

void XrdPfc::DataFsState::reset_stats ( )
inline

Definition at line 200 of file XrdPfcPurge.cc.

200{ m_root.reset_stats(); }

◆ upward_propagate_stats()

void XrdPfc::DataFsState::upward_propagate_stats ( )
inline

Definition at line 201 of file XrdPfcPurge.cc.

201{ m_root.upward_propagate_stats(); }

◆ 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(); }

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