|
||||||||||
| 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 |
genElemAttribute(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName objname,
java.lang.String attName,
java.lang.String elemName)
Construct an Attribute corresponding to an indexed attribute's element. |
static javax.management.Attribute |
genItemAttribute(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName objname,
java.lang.String attName,
java.lang.String key)
Construct an Attribute corresponding to an attribute's item. |
static javax.management.Attribute |
getAttributeFragment(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName objname,
java.lang.String name)
Return an Attribute object corresponding to the given attribute fragment name. |
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 getAttributeFragment(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName objname,
java.lang.String name)
throws java.io.IOException,
javax.management.JMException,
FragmentNameException
cnx - Connection to the MBean serverobjname - MBean to pollname - fragment name
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 javax.management.Attribute genItemAttribute(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName objname,
java.lang.String attName,
java.lang.String key)
throws java.io.IOException,
javax.management.JMException,
FragmentNameException
cnx - Connection to the MBean serverobjname - MBean to pollattName - the attribute's namekey - the item's key
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 javax.management.Attribute genElemAttribute(javax.management.MBeanServerConnection cnx,
javax.management.ObjectName objname,
java.lang.String attName,
java.lang.String elemName)
throws java.io.IOException,
javax.management.JMException,
FragmentNameException
cnx - Connection to the MBean serverobjname - MBean to pollattName - the attribute's nameelemName - indexed elemen's name (expected format is name[indexes])key - the item's key
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||