|
Hyperic HQ Plugin API v. 5.8.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.product.Metric
public class 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 String |
ATTR_AVAIL
|
static double |
AVAIL_DOWN
|
static double |
AVAIL_PAUSED
|
static double |
AVAIL_POWERED_OFF
|
static double |
AVAIL_UNKNOWN
|
static double |
AVAIL_UP
|
static double |
AVAIL_WARN
|
Method Summary | |
---|---|
static String |
configTemplate(String[] props)
|
static String |
decode(String val)
|
static String |
encode(String val)
|
String |
getAttributeName()
The attribute name |
String |
getCategory()
|
String |
getDomainName()
The domain name - corresponding the the ObjectName domain. |
String |
getId()
|
long |
getInterval()
|
String |
getObjectName()
The full JMX object name - domain : objectName |
Properties |
getObjectProperties()
Properties in the local part of the ObjectName. |
String |
getObjectProperty(String property)
|
String |
getObjectPropString()
The local part of the ObjectName. |
Properties |
getProperties()
|
String |
getPropString()
|
boolean |
isAvail()
|
static void |
main(String[] args)
|
static Metric |
parse(String template)
|
void |
setCategory(String category)
|
void |
setDomainName(String domain)
|
void |
setId(int type,
int id)
|
void |
setInterval(long interval)
|
void |
setObjectName(String objectName)
Set the JMX object name. |
void |
setPropString(String propString)
|
String |
toDebugString()
|
String |
toString()
|
static String |
translate(String template,
org.hyperic.util.config.ConfigResponse config)
|
static String |
translate(String template,
Properties props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ATTR_AVAIL
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
public static final double AVAIL_POWERED_OFF
Method Detail |
---|
public static String encode(String val)
public static String decode(String val)
public String getDomainName()
public void setDomainName(String domain)
public String getObjectName()
public void setObjectName(String objectName)
public String getAttributeName()
public String toString()
toString
in class Object
public String toDebugString()
public Properties getProperties()
public void setPropString(String propString)
public String getPropString()
public String getObjectProperty(String property)
public Properties getObjectProperties()
public String getObjectPropString()
public String getId()
public void setId(int type, int id)
public String getCategory()
public void setCategory(String category)
public long getInterval()
public void setInterval(long interval)
public boolean isAvail()
public static Metric parse(String template) throws MetricInvalidException
template
- The metric string to be parsed.
MetricInvalidException
- If the metric string is malformed.public static String translate(String template, org.hyperic.util.config.ConfigResponse config)
public static String translate(String template, Properties props)
public static String configTemplate(String[] props)
public static void main(String[] args) throws Exception
Exception
|
Hyperic HQ Plugin API v. 5.8.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |