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>
extract
private MBeanImpl
mbean
-
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.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.AMXMBeanInterface
getParent()
"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:AMXMBeanInterface
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. The type property can be obtained from the ObjectName- Specified by:
getName
in interfaceAMXMBeanInterface
-
getMeta
public java.util.Map<java.lang.String,?> getMeta()
Description copied from interface:AMXMBeanInterface
Get all metadata about this MBean.- Specified by:
getMeta
in 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:
getParent
in interfaceAMXMBeanInterface
- Returns:
- The container of this MBean (null if already at root).
-
getChildren
public AMXMBeanInterface[] getChildren()
Description copied from interface:AMXMBeanInterface
Containment 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:
getChildren
in 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)
-
-