Utilities
XrdAdaptor
interface
XrdStatistics.h
Go to the documentation of this file.
1
#ifndef Utilities_XrdAdaptor_XrdStatistics_h
2
#define Utilities_XrdAdaptor_XrdStatistics_h
3
4
#include <vector>
5
#include <string>
6
#include <chrono>
7
8
namespace
xrd_adaptor
{
9
10
class
XrdStatistics
{
11
public
:
12
XrdStatistics
() {}
13
virtual
~XrdStatistics
();
14
15
struct
CondorIOStats
{
16
uint64_t
bytesRead
{0};
17
std::chrono::nanoseconds
transferTime
{0};
18
};
19
20
// Provide an update of per-site transfer statistics to the CondorStatusService.
21
// Returns a mapping of "site name" to transfer statistics. The "site name" is
22
// as self-identified by the Xrootd host; may not necessarily match up with the
23
// "CMS site name".
24
virtual
std::vector<std::pair<std::string, CondorIOStats>>
condorUpdate
() = 0;
25
};
26
27
}
// namespace xrd_adaptor
28
29
#endif
cond::time::nanoseconds
boost::date_time::subsecond_duration< boost::posix_time::time_duration, 1000000000 > nanoseconds
Definition:
TimeConversions.h:16
xrd_adaptor::XrdStatistics::CondorIOStats::bytesRead
uint64_t bytesRead
Definition:
XrdStatistics.h:16
xrd_adaptor::XrdStatistics
Definition:
XrdStatistics.h:10
xrd_adaptor::XrdStatistics::CondorIOStats::transferTime
std::chrono::nanoseconds transferTime
Definition:
XrdStatistics.h:17
xrd_adaptor::XrdStatistics::XrdStatistics
XrdStatistics()
Definition:
XrdStatistics.h:12
xrd_adaptor
Definition:
XrdStatistics.h:8
xrd_adaptor::XrdStatistics::~XrdStatistics
virtual ~XrdStatistics()
Definition:
XrdStatistics.cc:17
xrd_adaptor::XrdStatistics::condorUpdate
virtual std::vector< std::pair< std::string, CondorIOStats > > condorUpdate()=0
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
xrd_adaptor::XrdStatistics::CondorIOStats
Definition:
XrdStatistics.h:15
Generated for CMSSW Reference Manual by
1.8.14