XRootD
Loading...
Searching...
No Matches
XrdPfcDirStateSnapshot.hh
Go to the documentation of this file.
1#ifndef __XRDPFC_DIRSTATESNAPSHOT_HH__
2#define __XRDPFC_DIRSTATESNAPSHOT_HH__
3
4#include "XrdPfcDirState.hh"
5
6#include <vector>
7
8class XrdOss;
9
10
11//==============================================================================
12// Structs for DirState export in vector form
13//==============================================================================
14
15namespace XrdPfc
16{
17
19{
22
23 int m_parent = -1;
25
28 DirStateBase(b),
29 m_stats(b.m_sshot_stats),
30 m_usage(b.m_here_usage, b.m_recursive_subdir_usage),
32 {}
33};
34
36{
37 std::vector<DirStateElement> m_dir_states;
39
41 DataFsSnapshot(const DataFsStateBase &b, time_t sshot_stats_reset_time) :
43 m_sshot_stats_reset_time(sshot_stats_reset_time)
44 {}
45
46 // Import of data into vector form is implemented in ResourceMonitor
47 // in order to avoid dependence of this struct on DirState.
48
49 void write_json_file(const std::string &fname, XrdOss& oss, bool include_preamble);
50 void dump();
51};
52
53}
54
55#endif
static void parent()
DataFsSnapshot(const DataFsStateBase &b, time_t sshot_stats_reset_time)
void write_json_file(const std::string &fname, XrdOss &oss, bool include_preamble)
std::vector< DirStateElement > m_dir_states
DirStateElement(const DirState &b, int parent)