|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.gmbal.AMXClient
public class AMXClient
This class implements a generic AMXMBeanInterface MBean which is connected to a possibly remote MBeanServerConnection (note that MBeanServer isA MBeanServerConnection, so we can actually create an AMXClientImpl simply by using the MBeanServer from the mom: this is useful for testing).
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.
| Field Summary | |
|---|---|
static ObjectName |
NULL_OBJECTNAME
Special object name used to represent a NULL objectName result. |
| Constructor Summary | |
|---|---|
AMXClient(MBeanServerConnection server,
ObjectName oname)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ObjectName NULL_OBJECTNAME
| Constructor Detail |
|---|
public AMXClient(MBeanServerConnection server,
ObjectName oname)
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String getName()
AMXMBeanInterface
getName in interface AMXMBeanInterfacepublic Map<String,?> getMeta()
AMXMBeanInterface
getMeta in interface AMXMBeanInterfacepublic AMXClient getParent()
AMXMBeanInterface
getParent in interface AMXMBeanInterfacepublic AMXClient[] getChildren()
AMXMBeanInterface
getChildren in interface AMXMBeanInterfacepublic Object getAttribute(String attribute)
public void setAttribute(String name,
Object value)
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
ReflectionExceptionpublic MBeanInfo getMBeanInfo()
public ObjectName objectName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||