#include <MetricsManager.h>
|
virtual const std::vector
< Metric * > & | getMetrics (const std::string &componentName) const |
|
virtual const Metric & | getMetric (const std::string &componentName, const std::string &metricName) const |
|
template<typename T > |
void | registerMetric (const std::string &componentName, const std::string &metricName, T &metric) |
|
template<typename T > |
void | registerMetric (const std::string &componentName, const std::string &metricName, boost::atomic< T > &metric) |
|
Interface of a metrics manager, with a dummy implementation. Can be overriden to provide real metrics management. Subclasses should override all private registerXXXMetric and registerAtomicXXXMetric methods.
const Metric & fesa::MetricsManager::getMetric |
( |
const std::string & |
componentName, |
|
|
const std::string & |
metricName |
|
) |
| const |
|
virtual |
Returns the corresponding metric.
- Exceptions
-
const std::vector< Metric * > & fesa::MetricsManager::getMetrics |
( |
const std::string & |
componentName | ) |
const |
|
virtual |
Returns the vector of Metrics currently registered for the given component name
template<typename T >
void fesa::MetricsManager::registerMetric |
( |
const std::string & |
componentName, |
|
|
const std::string & |
metricName, |
|
|
T & |
metric |
|
) |
| |
Registers a metric by calling the appropriate private registerXXXMetric method.
- Parameters
-
componentName | name of the component |
name | name of the metric |
metric | reference to the value to be monitored |
template<typename T >
void fesa::MetricsManager::registerMetric |
( |
const std::string & |
componentName, |
|
|
const std::string & |
metricName, |
|
|
boost::atomic< T > & |
metric |
|
) |
| |
Registers an atomic metric by calling the appropriate private registerAtomicXXXMetric method.
- Parameters
-
componentName | name of the component |
name | name of the metric |
metric | reference to the value to be monitored |
The documentation for this class was generated from the following files:
- MetricsManager.h
- MetricsManager.cpp