Go to the documentation of this file. 1 #ifndef Utilities_XrdAdaptor_QualityMetric_h
2 #define Utilities_XrdAdaptor_QualityMetric_h
9 #include "tbb/concurrent_unordered_map.h"
71 static std::unique_ptr<QualityMetricSource>
get(timespec
now,
const std::string &
id);
75 typedef tbb::concurrent_unordered_map<std::string, QualityMetricUniqueSource *>
MetricMap;
103 std::unique_ptr<QualityMetricSource>
newSource(timespec
now);
108 #endif // Utilities_XrdAdaptor_QualityMetric_h
std::unique_ptr< QualityMetricSource > newSource(timespec now)
void startWatch(QualityMetricWatch &)
static const unsigned interval_length
QualityMetricSource(QualityMetricUniqueSource &parent, timespec now, int default_value)
QualityMetricUniqueSource & m_parent
QualityMetric(timespec now, int default_value=260)
edm::propagate_const< QualityMetric * > m_parent1
QualityMetricUniqueSource(timespec now)
void finishWatch(timespec now, int ms)
void swap(QualityMetricWatch &)
tbb::concurrent_unordered_map< std::string, QualityMetricUniqueSource * > MetricMap
static std::unique_ptr< QualityMetricSource > get(timespec now, const std::string &id)
edm::propagate_const< QualityMetric * > m_parent2
QualityMetric & operator=(const QualityMetric &)=delete
static QualityMetricFactory m_instance
QualityMetricWatch & operator=(const QualityMetricWatch &)=delete