Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CondorStatusUpdator now only depends on the abstract XrdStatistics interface. This avoids including a header from the /src directory.
- Loading branch information
Showing
6 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef Utilities_XrdAdaptor_XrdStatistics_h | ||
#define Utilities_XrdAdaptor_XrdStatistics_h | ||
|
||
#include <vector> | ||
#include <string> | ||
|
||
namespace xrd_adaptor { | ||
|
||
class XrdStatistics { | ||
public: | ||
XrdStatistics() {} | ||
virtual ~XrdStatistics(); | ||
|
||
struct CondorIOStats { | ||
uint64_t bytesRead{0}; | ||
std::chrono::nanoseconds transferTime{0}; | ||
}; | ||
|
||
// Provide an update of per-site transfer statistics to the CondorStatusService. | ||
// Returns a mapping of "site name" to transfer statistics. The "site name" is | ||
// as self-identified by the Xrootd host; may not necessarily match up with the | ||
// "CMS site name". | ||
virtual std::vector<std::pair<std::string, CondorIOStats>> condorUpdate() = 0; | ||
}; | ||
|
||
} // namespace xrd_adaptor | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters