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
getMetric
JabbixMetric<?> getMetric(String key)
throws JabbixException,
NoSuchMetricException
- Returns a
JabbixMetric
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 found
JabbixException
- in any other error case