public final class CompleteGarbageCollectorMXBean extends Object implements com.sun.management.GarbageCollectorMXBean, NotificationEmitter
Constructor and Description |
---|
CompleteGarbageCollectorMXBean() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
long |
getCollectionCount() |
long |
getCollectionTime() |
com.sun.management.GcInfo |
getLastGcInfo() |
String[] |
getMemoryPoolNames() |
String |
getName() |
MBeanNotificationInfo[] |
getNotificationInfo() |
ObjectName |
getObjectName() |
boolean |
isValid() |
void |
removeNotificationListener(NotificationListener listener) |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
public long getCollectionCount()
getCollectionCount
in interface GarbageCollectorMXBean
public long getCollectionTime()
getCollectionTime
in interface GarbageCollectorMXBean
public String[] getMemoryPoolNames()
getMemoryPoolNames
in interface MemoryManagerMXBean
public String getName()
getName
in interface MemoryManagerMXBean
public boolean isValid()
isValid
in interface MemoryManagerMXBean
public ObjectName getObjectName()
getObjectName
in interface PlatformManagedObject
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
public com.sun.management.GcInfo getLastGcInfo()