public class AMXClient extends 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 ObjectName |
NULL_OBJECTNAME
Special object name used to represent a NULL objectName result.
|
Constructor and Description |
---|
AMXClient(MBeanServerConnection server,
ObjectName oname) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
AMXClient[] |
getChildren()
Containment hierarchy:
Get all AMXMBeanInterface contained by this one, in no particular order.
|
MBeanInfo |
getMBeanInfo() |
Map<String,?> |
getMeta()
Get all metadata about this MBean.
|
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() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
ObjectName |
objectName() |
void |
setAttribute(Attribute attribute) |
void |
setAttribute(String name,
Object value) |
AttributeList |
setAttributes(AttributeList attributes) |
String |
toString() |
public static final ObjectName NULL_OBJECTNAME
public AMXClient(MBeanServerConnection server, ObjectName oname)
public String getName()
AMXMBeanInterface
getName
in interface AMXMBeanInterface
public Map<String,?> getMeta()
AMXMBeanInterface
getMeta
in interface AMXMBeanInterface
public AMXClient getParent()
AMXMBeanInterface
getParent
in interface AMXMBeanInterface
public AMXClient[] getChildren()
AMXMBeanInterface
getChildren
in interface AMXMBeanInterface
public void setAttribute(Attribute attribute)
public AttributeList getAttributes(String[] attributes)
public AttributeList setAttributes(AttributeList attributes)
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
MBeanException
ReflectionException
public MBeanInfo getMBeanInfo()
public ObjectName objectName()
Copyright © 2017 Oracle. All rights reserved.