public class JabbixMetricAgent extends java.lang.Object implements MetricAgent
MetricAgent
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.Constructor and Description |
---|
JabbixMetricAgent()
Creates a new instance of this metric agent.
|
Modifier and Type | Method and Description |
---|---|
JabbixMetric<?> |
getMetric(java.lang.String key)
Returns a metric object representing a value of a Jabbix program with the
specified key.
|
public JabbixMetricAgent()
public JabbixMetric<?> getMetric(java.lang.String key) throws JabbixException, NoSuchMetricException
getMetric
in interface MetricAgent
key
- metric key, the name of a metricJabbixMetric
object containing the current value of a
metricNoSuchMetricException
- if no metric with the specified key is foundJabbixException
- in any other error case