CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
13  virtual ~XrdStatistics();
14 
15  struct CondorIOStats {
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
boost::date_time::subsecond_duration< boost::posix_time::time_duration, 1000000000 > nanoseconds
std::chrono::nanoseconds transferTime
Definition: XrdStatistics.h:17
virtual std::vector< std::pair< std::string, CondorIOStats > > condorUpdate()=0
unsigned long long uint64_t
Definition: Time.h:13