|
Hyperic HQ Plugin API v. 2.5.dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.hyperic.hq.product.Metric
this class parses Metrics in the form of: jmx-domain:jmx-properties:jmx-attribute:metric-properties For example: jboss.system:type=ServerInfo,lang=eng:FreeMemory:naming=jnp://localhost:1099,password=xxx where: jmx-domain = jboss.system jmx-properties = type=ServerInfo,lang=eng jmx-attribute = FreeMemory metric-properties = naming=jnp://localhost:1099,password=xxx
Field Summary | |
static double |
AVAIL_DOWN
|
static double |
AVAIL_PAUSED
|
static double |
AVAIL_UNKNOWN
|
static double |
AVAIL_UP
|
static double |
AVAIL_WARN
|
Method Summary | |
static java.lang.String |
configTemplate(java.lang.String[] props)
|
static java.lang.String |
decode(java.lang.String val)
|
static java.lang.String |
encode(java.lang.String val)
|
java.lang.String |
getAttributeName()
The attribute name |
java.lang.String |
getDomainName()
The domain name - corresponding the the ObjectName domain. |
java.lang.String |
getId()
|
java.lang.String |
getObjectName()
The full JMX object name - domain : objectName |
java.util.Properties |
getObjectProperties()
Properties in the local part of the ObjectName. |
java.lang.String |
getObjectProperty(java.lang.String property)
|
java.lang.String |
getObjectPropString()
The local part of the ObjectName. |
java.util.Properties |
getProperties()
|
java.lang.String |
getPropString()
|
static void |
main(java.lang.String[] args)
|
static Metric |
parse(java.lang.String template)
|
void |
setDomainName(java.lang.String domain)
|
void |
setId(int type,
int id)
|
void |
setObjectName(java.lang.String objectName)
Set the JMX object name. |
void |
setPropString(java.lang.String propString)
|
java.lang.String |
toString()
|
static java.lang.String |
translate(java.lang.String template,
ConfigResponse config)
|
static java.lang.String |
translate(java.lang.String template,
java.util.Properties props)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final double AVAIL_UNKNOWN
public static final double AVAIL_UP
public static final double AVAIL_DOWN
public static final double AVAIL_WARN
public static final double AVAIL_PAUSED
Method Detail |
public static java.lang.String encode(java.lang.String val)
public static java.lang.String decode(java.lang.String val)
public java.lang.String getDomainName()
public void setDomainName(java.lang.String domain)
public java.lang.String getObjectName()
public void setObjectName(java.lang.String objectName)
public java.lang.String getAttributeName()
public java.lang.String toString()
public java.util.Properties getProperties()
public void setPropString(java.lang.String propString)
public java.lang.String getPropString()
public java.lang.String getObjectProperty(java.lang.String property)
public java.util.Properties getObjectProperties()
public java.lang.String getObjectPropString()
public java.lang.String getId()
public void setId(int type, int id)
public static Metric parse(java.lang.String template) throws MetricInvalidException
template
- The metric string to be parsed.
MetricInvalidException
- If the metric string is malformed.public static java.lang.String translate(java.lang.String template, ConfigResponse config)
public static java.lang.String translate(java.lang.String template, java.util.Properties props)
public static java.lang.String configTemplate(java.lang.String[] props)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
Hyperic HQ Plugin API v. 2.5.dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |