public abstract class AbstractMemoryMXBean extends Object implements MemoryMXBean, NotificationEmitter
| Modifier and Type | Field and Description |
|---|---|
protected static long |
UNDEFINED_MEMORY_USAGE |
| Constructor and Description |
|---|
AbstractMemoryMXBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
void |
gc() |
MemoryUsage |
getNonHeapMemoryUsage() |
MBeanNotificationInfo[] |
getNotificationInfo() |
ObjectName |
getObjectName() |
int |
getObjectPendingFinalizationCount() |
boolean |
isVerbose() |
void |
removeNotificationListener(NotificationListener listener) |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
void |
setVerbose(boolean value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeapMemoryUsageprotected static final long UNDEFINED_MEMORY_USAGE
public ObjectName getObjectName()
getObjectName in interface PlatformManagedObjectpublic int getObjectPendingFinalizationCount()
getObjectPendingFinalizationCount in interface MemoryMXBeanpublic MemoryUsage getNonHeapMemoryUsage()
getNonHeapMemoryUsage in interface MemoryMXBeanpublic boolean isVerbose()
isVerbose in interface MemoryMXBeanpublic void setVerbose(boolean value)
setVerbose in interface MemoryMXBeanpublic void gc()
gc in interface MemoryMXBeanpublic void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
removeNotificationListener in interface NotificationEmitterpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener in interface NotificationBroadcasterpublic void removeNotificationListener(NotificationListener listener)
removeNotificationListener in interface NotificationBroadcasterpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcaster