|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.probe.collectors.jmx.internal.JmxUtil
public class JmxUtil
Support for access to MBean attributes and attribute fragments.
| Constructor Summary | |
|---|---|
JmxUtil()
|
|
| Method Summary | |
|---|---|
static javax.management.Attribute |
createNewIndexedAttribute(java.lang.String contName,
java.lang.String index,
java.lang.Object elemValue)
Create a new Attribute instance for an indexed element. |
static javax.management.Attribute |
createNewItemAttribute(java.lang.String contName,
java.lang.String key,
java.lang.Object itemValue)
Create a new Attribute instance for a keyed item. |
static javax.management.Attribute |
getAttributeFragment(java.lang.String name,
javax.management.Attribute att)
Return an Attribute object corresponding to the given attribute fragment name. |
static java.util.List<javax.management.Attribute> |
getAttributeFragments(javax.management.Attribute att)
Decompose a JMX Attribute having a complex type into a list of Attributes having simple types (the fragments). |
static java.util.List<java.lang.String> |
getMBeanAttNames(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName on)
Return a list of attribute names of a given MBean. |
static java.util.Set<javax.management.ObjectName> |
getMBeans(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName on)
Get all the MBeans corresponding to an ObjectName pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JmxUtil()
| Method Detail |
|---|
public static java.util.Set<javax.management.ObjectName> getMBeans(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName on)
throws java.io.IOException
cnx - Connection to the MBean serveron - ObjectName pattern
java.io.IOException - A communication problem occurred when
talking to the MBean server.
public static java.util.List<java.lang.String> getMBeanAttNames(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName on)
throws java.io.IOException,
javax.management.JMException
cnx - MBeanServer connectionon - The MBean's name.
java.io.IOException - A communication problem occurred when
talking to the MBean server.
javax.management.JMException - A JMX exception occurred when using the MBean.
public static javax.management.Attribute createNewIndexedAttribute(java.lang.String contName,
java.lang.String index,
java.lang.Object elemValue)
contName - the name associated to the indexed objectindex - the element's indexelemValue - the value of the element having the given index
public static javax.management.Attribute createNewItemAttribute(java.lang.String contName,
java.lang.String key,
java.lang.Object itemValue)
contName - the name associated to the composite object (the container)key - the item's keyitemValue - the value of the item having the given key
public static javax.management.Attribute getAttributeFragment(java.lang.String name,
javax.management.Attribute att)
throws FragmentNameException
cnx - Connection to the MBean serverobjname - MBean to pollname - attribute fragment namerootAtt - the MBean attribute containing this fragment
java.io.IOException - A communication problem occurred when
talking to the MBean server.
javax.management.JMException - Problem with the JMX code.
FragmentNameException - exception related to the fragment naming policy
public static java.util.List<javax.management.Attribute> getAttributeFragments(javax.management.Attribute att)
throws ComplexValuesException
att - The initial attribute which may have a complex or a simple type.
It its value has a simple type, the attribute is returned as it is.
If it has a complex type, its value is decomposed in simple elements, the fragments.
ComplexValuesException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||