1 #ifndef Utilities_XrdAdaptor_QualityMetric_h
2 #define Utilities_XrdAdaptor_QualityMetric_h
8 #include <unordered_map>
10 #include <boost/utility.hpp>
12 namespace XrdAdaptor {
65 std::unique_ptr<QualityMetricSource>
get(timespec
now,
const std::string &id);
69 typedef std::unordered_map<std::string, QualityMetricUniqueSource*>
MetricMap;
99 std::unique_ptr<QualityMetricSource>
newSource(timespec
now);
104 #endif // Utilities_XrdAdaptor_QualityMetric_h
static boost::mutex mutex
QualityMetric * m_parent1
std::unique_ptr< QualityMetricSource > newSource(timespec now)
QualityMetric(timespec now, int default_value=260)
QualityMetricUniqueSource & m_parent
void finishWatch(timespec now, int ms)
QualityMetricSource(QualityMetricUniqueSource &parent, timespec now, int default_value)
std::unordered_map< std::string, QualityMetricUniqueSource * > MetricMap
QualityMetric * m_parent2
static QualityMetricFactory * m_instance
void startWatch(QualityMetricWatch &)
void swap(QualityMetricWatch &)
static const unsigned interval_length
QualityMetricUniqueSource(timespec now)