|
|||||||||
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 javax.management.ObjectName |
NULL_OBJECTNAME
Special object name used to represent a NULL objectName result. |
Constructor Summary | |
---|---|
AMXClient(javax.management.MBeanServerConnection server,
javax.management.ObjectName oname)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final javax.management.ObjectName NULL_OBJECTNAME
Constructor Detail |
---|
public AMXClient(javax.management.MBeanServerConnection server, javax.management.ObjectName oname)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |