org.hyperic.hq.product
Class Win32MeasurementPlugin
java.lang.Object
org.hyperic.hq.product.GenericPlugin
org.hyperic.hq.product.MeasurementPlugin
org.hyperic.hq.product.Win32MeasurementPlugin
public class Win32MeasurementPlugin
- extends MeasurementPlugin
Field Summary |
static java.lang.String |
DOMAIN
|
Methods inherited from class org.hyperic.hq.product.MeasurementPlugin |
getCollectorProperties, getConfigSchema, getHelp, getManager, getMeasurementProperties, getMeasurements, getNewCollector, getPlatformHelpProperties, getPluginXMLHelp, init, translate |
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, getProductPlugin, getProperties, getScriptExtension, getScriptExtension, getScriptExtension, getTypeInfo, getTypeNameProperty, getTypeNameProperty, getTypeProperties, getTypeProperty, getTypeProperty, getTypeProperty, isNetStatEnabled, isWin32, openResource, setData, setName, setTypeInfo, shutdown, toFileList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMAIN
public static final java.lang.String DOMAIN
- See Also:
- Constant Field Values
Win32MeasurementPlugin
public Win32MeasurementPlugin()
getValue
public 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
getAttributeName
protected java.lang.String getAttributeName(Metric metric)
getDomainName
protected java.lang.String getDomainName(Metric metric)
adjustValue
protected double adjustValue(Metric metric,
double value)
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.