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, wait
getHeapMemoryUsage
protected static final long UNDEFINED_MEMORY_USAGE
public ObjectName getObjectName()
getObjectName
in interface PlatformManagedObject
public int getObjectPendingFinalizationCount()
getObjectPendingFinalizationCount
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