org.hyperic.hq.product.jmx
Class MxMeasurementPlugin
java.lang.Object
org.hyperic.hq.product.GenericPlugin
org.hyperic.hq.product.MeasurementPlugin
org.hyperic.hq.product.jmx.MxMeasurementPlugin
public class MxMeasurementPlugin
- extends MeasurementPlugin
Method Summary |
org.hyperic.hq.product.MetricValue |
getValue(Metric metric)
This method is called when the plugin is asked for a
metric value. |
String |
translate(String template,
org.hyperic.util.config.ConfigResponse config)
Translate a measurement as returned from getMeasurements() into a
value which can be passed into the plugin's getValue() routine. |
Methods inherited from class org.hyperic.hq.product.GenericPlugin |
adjustClassPath, configure, getAbsoluteFiles, getConfig, getConfig, getCustomPropertiesSchema, getCustomPropertiesSchema, getCustomPropertiesSchema, getDefaultInstallPath, getLog, getLogName, getManagerProperty, getName, getPlatformName, getPluginClassName, getPluginData, getPluginProperty, getPluginVersion, getProductPlugin, getProperties, getScriptExtension, getScriptExtension, getScriptExtension, getTypeInfo, getTypeNameProperty, getTypeNameProperty, getTypeProperties, getTypeProperty, getTypeProperty, getTypeProperty, isNetStatEnabled, isWin32, openResource, setData, setName, setPluginVersion, setTypeInfo, shutdown, toFileList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MxMeasurementPlugin
public MxMeasurementPlugin()
getValue
public org.hyperic.hq.product.MetricValue getValue(Metric metric)
throws PluginException,
MetricNotFoundException,
MetricUnreachableException
- Description copied from class:
MeasurementPlugin
- This method is called when the plugin is asked for a
metric value. The Metric is a translated value as returned
by the getMeasurements() routine, and then run through the
translate() method.
- Overrides:
getValue
in class MeasurementPlugin
- Parameters:
metric
- Value returned from translate(), representing a
specific metric to retrieve
- Returns:
- The value of the Metric and timestamp of collection time
- Throws:
PluginException
- Thrown when an internal plugin error occurs
MetricNotFoundException
- The monitored resource does not know
about the requested Metric. I.e. JMX AttributeNotFoundException
MetricUnreachableException
- The monitored resource is unreachable.
I.e. ConnectException
translate
public String translate(String template,
org.hyperic.util.config.ConfigResponse config)
- Description copied from class:
MeasurementPlugin
- Translate a measurement as returned from getMeasurements() into a
value which can be passed into the plugin's getValue() routine.
- Overrides:
translate
in class MeasurementPlugin
- Parameters:
template
- Measurement template from one of the plugins
measurements returned from getMeasurements()config
- Configuration used to perform translation on the
template
Copyright © 2004-2010 Hyperic, Inc. support@hyperic.net, All Rights Reserved.