Package org.altlinux.jabbix
Interface MetricAgent
-
- All Known Implementing Classes:
JabbixMetricAgent,RandomNumberMetric
public interface MetricAgentA 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 aJabbixMetricobject containing the current value of a metric with the specified key.
-
-
-
Method Detail
-
getMetric
JabbixMetric<?> getMetric(java.lang.String key) throws JabbixException, NoSuchMetricException
Returns aJabbixMetricobject containing the current value of a metric with the specified key.- Parameters:
key- metric key, the name of a metric- Returns:
JabbixMetricobject containing the current value of a metric- Throws:
NoSuchMetricException- if no metric with the specified key is foundJabbixException- in any other error case
-
-