|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.product.GenericPlugin
org.hyperic.hq.product.MeasurementPlugin
org.hyperic.hq.product.jmx.MxMeasurementPlugin
public class MxMeasurementPlugin
Field Summary |
---|
Fields inherited from class org.hyperic.hq.product.MeasurementPlugin |
---|
PROP_TEMPLATE_CONFIG, TYPE_COLLECTOR |
Fields inherited from class org.hyperic.hq.product.GenericPlugin |
---|
config, FILE_DELIM, FILE_DELIM_ESC, PROP_NAME |
Constructor Summary | |
---|---|
MxMeasurementPlugin()
|
Method Summary | |
---|---|
MetricValue |
getValue(Metric metric)
This method is called when the plugin is asked for a metric value. |
java.lang.String |
translate(java.lang.String template,
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.MeasurementPlugin |
---|
getCollectorProperties, getConfigSchema, getHelp, getManager, getMeasurementProperties, getMeasurements, getNewCollector, getPlatformHelpProperties, getPluginXMLHelp, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MxMeasurementPlugin()
Method Detail |
---|
public MetricValue getValue(Metric metric) throws PluginException, MetricNotFoundException, MetricUnreachableException
MeasurementPlugin
getValue
in class MeasurementPlugin
metric
- Value returned from translate(), representing a
specific metric to retrieve
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. ConnectExceptionpublic java.lang.String translate(java.lang.String template, ConfigResponse config)
MeasurementPlugin
translate
in class MeasurementPlugin
template
- Measurement template from one of the plugins
measurements returned from getMeasurements()config
- Configuration used to perform translation on the
template
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |