Package org.glassfish.gmbal.impl
Class AMXImpl
- java.lang.Object
-
- org.glassfish.gmbal.impl.AMXImpl
-
- All Implemented Interfaces:
AMXMBeanInterface
public class AMXImpl extends java.lang.Object implements AMXMBeanInterface
-
-
Field Summary
Fields Modifier and Type Field Description private static org.glassfish.pfl.basic.func.UnaryFunction<MBeanImpl,AMXMBeanInterface>extractprivate MBeanImplmbean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMXMBeanInterface[]getChildren()Containment hierarchy: Get all AMXMBeanInterface contained by this one, in no particular order.private AMXMBeanInterface[]getContained(java.lang.String type)private java.util.List<AMXMBeanInterface>getContained(java.util.Set<java.lang.String> types)java.util.Map<java.lang.String,?>getMeta()Get all metadata about this MBean.java.lang.StringgetName()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.AMXMBeanInterfacegetParent()"go up one level": the MBean containing this one, can be null for root
-
-
-
Field Detail
-
mbean
private MBeanImpl mbean
-
extract
private static org.glassfish.pfl.basic.func.UnaryFunction<MBeanImpl,AMXMBeanInterface> extract
-
-
Constructor Detail
-
AMXImpl
public AMXImpl(MBeanImpl mb)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AMXMBeanInterfaceUsually 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. The type property can be obtained from the ObjectName- Specified by:
getNamein interfaceAMXMBeanInterface
-
getMeta
public java.util.Map<java.lang.String,?> getMeta()
Description copied from interface:AMXMBeanInterfaceGet all metadata about this MBean.- Specified by:
getMetain interfaceAMXMBeanInterface- Returns:
- The descriptor, which will be a ModelMBeanInfoSupport instance.
-
getParent
public AMXMBeanInterface getParent()
Description copied from interface:AMXMBeanInterface"go up one level": the MBean containing this one, can be null for root- Specified by:
getParentin interfaceAMXMBeanInterface- Returns:
- The container of this MBean (null if already at root).
-
getChildren
public AMXMBeanInterface[] getChildren()
Description copied from interface:AMXMBeanInterfaceContainment hierarchy: Get all AMXMBeanInterface contained by this one, in no particular order. Valid only if isContainer(). Note that using an array sidesteps Map/Set/OpenType issues- Specified by:
getChildrenin interfaceAMXMBeanInterface- Returns:
- All children of this AMXMBeanInterface MBean.
-
getContained
private java.util.List<AMXMBeanInterface> getContained(java.util.Set<java.lang.String> types)
-
getContained
private AMXMBeanInterface[] getContained(java.lang.String type)
-
-