1 #ifndef Utilities_XrdAdaptor_QualityMetric_h
2 #define Utilities_XrdAdaptor_QualityMetric_h
9 #include "tbb/concurrent_unordered_map.h"
10 #include <boost/utility.hpp>
14 namespace XrdAdaptor {
67 std::unique_ptr<QualityMetricSource>
get(timespec
now,
const std::string &id);
71 typedef tbb::concurrent_unordered_map<std::string, QualityMetricUniqueSource*>
MetricMap;
101 std::unique_ptr<QualityMetricSource>
newSource(timespec
now);
106 #endif // Utilities_XrdAdaptor_QualityMetric_h
edm::propagate_const< QualityMetric * > m_parent2
static boost::mutex mutex
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)
tbb::concurrent_unordered_map< std::string, QualityMetricUniqueSource * > MetricMap
void startWatch(QualityMetricWatch &)
void swap(QualityMetricWatch &)
static const unsigned interval_length
static QualityMetricFactory m_instance
QualityMetricUniqueSource(timespec now)
edm::propagate_const< QualityMetric * > m_parent1