public final class HeapImplMemoryMXBean extends Object implements MemoryMXBean, NotificationEmitter
Constructor and Description |
---|
HeapImplMemoryMXBean() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
void |
gc() |
MemoryUsage |
getHeapMemoryUsage() |
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) |
public ObjectName getObjectName()
getObjectName
in interface PlatformManagedObject
public int getObjectPendingFinalizationCount()
getObjectPendingFinalizationCount
in interface MemoryMXBean
public MemoryUsage getHeapMemoryUsage()
getHeapMemoryUsage
in interface MemoryMXBean
public MemoryUsage getNonHeapMemoryUsage()
getNonHeapMemoryUsage
in interface MemoryMXBean
public boolean isVerbose()
isVerbose
in interface MemoryMXBean
public void setVerbose(boolean value)
setVerbose
in interface MemoryMXBean
public void gc()
gc
in interface MemoryMXBean
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
removeNotificationListener
in interface NotificationEmitter
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener)
removeNotificationListener
in interface NotificationBroadcaster
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster