| java.lang.Object org.apache.harmony.lang.management.DynamicMXBeanImpl org.apache.harmony.lang.management.MemoryMXBeanImpl
MemoryMXBeanImpl | final public class MemoryMXBeanImpl extends DynamicMXBeanImpl implements java.lang.management.MemoryMXBean,NotificationEmitter(Code) | | Runtime type for
MemoryMXBean .
Implementation note. This type of bean is both dynamic and a notification
emitter. The dynamic behaviour comes courtesy of the
org.apache.harmony.lang.management.DynamicMXBeanImpl superclass while the
notifying behaviour uses a delegation approach to a private member that
implements the
javax.management.NotificationEmitter interface.
Because multiple inheritance is not supported in Java it was a toss up which
behaviour would be based on inheritence and which would use delegation. Every
other *MXBeanImpl class in this package inherits from the
abstract base class DynamicMXBeanImpl so that seemed to be the
natural approach for this class too. By choosing not to make this class a
subclass of
javax.management.NotificationBroadcasterSupport , the
protected
handleNotification(javax.management.NotificationListener, javax.management.Notification, java.lang.Object)
method cannot be overridden for any custom notification behaviour. However,
taking the agile mantra of YAGNI to heart, it was decided that the
default implementation of that method will suffice until new requirements
prove otherwise.
since: 1.5 |
getInstance | static MemoryMXBeanImpl getInstance()(Code) | | Singleton accessor method.
the ClassLoadingMXBeanImpl singleton. |
getMemoryManagerMXBeans | List<MemoryManagerMXBean> getMemoryManagerMXBeans()(Code) | | Retrieves the list of memory manager beans in the system.
the list of MemoryManagerMXBean instances |
getObjectPendingFinalizationCount | public int getObjectPendingFinalizationCount()(Code) | | |
isVerbose | public boolean isVerbose()(Code) | | |
setVerbose | public void setVerbose(boolean value)(Code) | | |
Methods inherited from org.apache.harmony.lang.management.DynamicMXBeanImpl | public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)(Java Doc) public AttributeList getAttributes(String[] attributes)(Code)(Java Doc) public MBeanInfo getMBeanInfo()(Code)(Java Doc) protected MBeanAttributeInfo getPresentAttribute(String attributeName, AttributeAccessType access)(Code)(Java Doc) protected MBeanOperationInfo getPresentOperation(String actionName, String[] signature)(Code)(Java Doc) public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException(Code)(Java Doc) public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)(Java Doc) public AttributeList setAttributes(AttributeList attributes)(Code)(Java Doc) protected void setMBeanInfo(MBeanInfo info)(Code)(Java Doc)
|
|
|