Package org.altlinux.jabbix
Class JabbixMetricAgent
- java.lang.Object
-
- org.altlinux.jabbix.JabbixMetricAgent
-
- All Implemented Interfaces:
MetricAgent
public class JabbixMetricAgent extends java.lang.Object implements MetricAgent
AMetricAgent
implementation for the retrieval of some internal Jabbix program values. Currently only the following parameters can be read:"jabbix.agent.freeMemory"
,"jabbix.agent.maxMemory"
and"jabbix.agent.totalMemory"
. These parameters represent the corresponding Java VM runtime parameters.- Author:
- Paul Wolneykien
-
-
Constructor Summary
Constructors Constructor Description JabbixMetricAgent()
Creates a new instance of this metric agent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JabbixMetric<?>
getMetric(java.lang.String key)
Returns a metric object representing a value of a Jabbix program with the specified key.
-
-
-
Method Detail
-
getMetric
public JabbixMetric<?> getMetric(java.lang.String key) throws JabbixException, NoSuchMetricException
Returns a metric object representing a value of a Jabbix program with the specified key.- Specified by:
getMetric
in interfaceMetricAgent
- 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
-
-