Package org.altlinux.jabbix
Interface MetricAgent
-
- All Known Implementing Classes:
JabbixMetricAgent
,RandomNumberMetric
public interface MetricAgent
A metric agent provides the method to read current value of a metric.- Author:
- Paul Wolneykien
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JabbixMetric<?>
getMetric(java.lang.String key)
Returns aJabbixMetric
object containing the current value of a metric with the specified key.
-
-
-
Method Detail
-
getMetric
JabbixMetric<?> getMetric(java.lang.String key) throws JabbixException, NoSuchMetricException
Returns aJabbixMetric
object containing the current value of a metric with the specified key.- Parameters:
key
- metric key, the name of a metric- Returns:
JabbixMetric
object containing the current value of a metric- Throws:
NoSuchMetricException
- if no metric with the specified key is foundJabbixException
- in any other error case
-
-