Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:53

0001 #ifndef Utilities_XrdAdaptor_XrdStatistics_h
0002 #define Utilities_XrdAdaptor_XrdStatistics_h
0003 
0004 #include <vector>
0005 #include <string>
0006 #include <chrono>
0007 
0008 namespace xrd_adaptor {
0009 
0010   class XrdStatistics {
0011   public:
0012     XrdStatistics() {}
0013     virtual ~XrdStatistics();
0014 
0015     struct CondorIOStats {
0016       uint64_t bytesRead{0};
0017       std::chrono::nanoseconds transferTime{0};
0018     };
0019 
0020     // Provide an update of per-site transfer statistics to the CondorStatusService.
0021     // Returns a mapping of "site name" to transfer statistics.  The "site name" is
0022     // as self-identified by the Xrootd host; may not necessarily match up with the
0023     // "CMS site name".
0024     virtual std::vector<std::pair<std::string, CondorIOStats>> condorUpdate() = 0;
0025   };
0026 
0027 }  // namespace xrd_adaptor
0028 
0029 #endif