public class AMXClient extends java.lang.Object implements AMXMBeanInterface
Note that this version of the AMXMBeanInterface API provides a generic get/set API that is identical to DynamicMBean, except that it only throws unchecked exceptions. This is far more convenient in practice than the JMX-standard checked exceptions.
Modifier and Type | Field and Description |
---|---|
static javax.management.ObjectName |
NULL_OBJECTNAME
Special object name used to represent a NULL objectName result.
|
Constructor and Description |
---|
AMXClient(javax.management.MBeanServerConnection server,
javax.management.ObjectName oname) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAttribute(java.lang.String attribute) |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
AMXClient[] |
getChildren()
Containment hierarchy:
Get all AMXMBeanInterface contained by this one, in no particular order.
|
javax.management.MBeanInfo |
getMBeanInfo() |
java.util.Map<java.lang.String,?> |
getMeta()
Get all metadata about this MBean.
|
java.lang.String |
getName()
Usually the same as the ObjectName 'name' property, but can differ
if the actual name contains characters that must be escaped for an ObjectName and/or
if the MBean has a mutable name attribute.
|
AMXClient |
getParent()
"go up one level": the MBean containing this one, can be null for root
|
int |
hashCode() |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
javax.management.ObjectName |
objectName() |
void |
setAttribute(javax.management.Attribute attribute) |
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
java.lang.String |
toString() |
public static final javax.management.ObjectName NULL_OBJECTNAME
public AMXClient(javax.management.MBeanServerConnection server, javax.management.ObjectName oname)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
AMXMBeanInterface
getName
in interface AMXMBeanInterface
public java.util.Map<java.lang.String,?> getMeta()
AMXMBeanInterface
getMeta
in interface AMXMBeanInterface
public AMXClient getParent()
AMXMBeanInterface
getParent
in interface AMXMBeanInterface
public AMXClient[] getChildren()
AMXMBeanInterface
getChildren
in interface AMXMBeanInterface
public java.lang.Object getAttribute(java.lang.String attribute)
public void setAttribute(java.lang.String name, java.lang.Object value)
public void setAttribute(javax.management.Attribute attribute)
public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
public java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.MBeanInfo getMBeanInfo()
public javax.management.ObjectName objectName()