public class MemoryPoolNotificationInfo
extends java.lang.Object
Memory pool notification information.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MEMORY_LIVE_SET_SIZE_THRESHOLD_EXCEEDED
Notification that the live set size of this memory pool has exceeded
the threshold specified by using
MemoryPoolMXBean.setLiveSetSizeThreshold(long);
This is a threshold notification and
requires that a threshold value greater than zero be set using the
MemoryPoolMXBean.setLiveSetSizeThreshold(long) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed. |
static java.lang.String |
MEMORY_USE_AFTER_COLLECTION_THRESHOLD_EXCEEDED
Notification that the memory use by this memory pool has exceeded
the threshold specified by using
MemoryPoolMXBean.setAfterCollectionUseThreshold(long);
This is a threshold notification and
requires that a threshold value greater than zero be set using the
MemoryPoolMXBean.setAfterCollectionUseThreshold(long) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed. |
static java.lang.String |
MEMORY_USE_THRESHOLD_EXCEEDED
Notification that the memory use by this memory pool has exceeded
the threshold specified by using
MemoryPoolMXBean.setUseThreshold(long);
This is a threshold notification and
requires that a threshold value greater than zero be set using the
MemoryPoolMXBean.setUseThreshold(long) method;
The check to see whether this threshold has been exceeded is made
repeatedly at a time interval that is configurable. |
| Constructor and Description |
|---|
MemoryPoolNotificationInfo(java.lang.String poolName,
java.lang.String notificationReason,
long count,
MemoryUsage memoryUsage)
Constructs a MemoryPoolNotificationInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
static MemoryPoolNotificationInfo |
from(javax.management.openmbean.CompositeData cd)
Constructs a
MemoryPoolNotificationInfo object from the CompositeData passed. |
long |
getCount() |
MemoryUsage |
getMemoryUsage() |
java.lang.String |
getNotificationReason() |
java.lang.String |
getPoolName() |
public static final java.lang.String MEMORY_LIVE_SET_SIZE_THRESHOLD_EXCEEDED
Notification that the live set size of this memory pool has exceeded
the threshold specified by using
MemoryPoolMXBean.setLiveSetSizeThreshold(long);
This is a threshold notification and
requires that a threshold value greater than zero be set using the
MemoryPoolMXBean.setLiveSetSizeThreshold(long) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed.
public static final java.lang.String MEMORY_USE_AFTER_COLLECTION_THRESHOLD_EXCEEDED
Notification that the memory use by this memory pool has exceeded
the threshold specified by using
MemoryPoolMXBean.setAfterCollectionUseThreshold(long);
This is a threshold notification and
requires that a threshold value greater than zero be set using the
MemoryPoolMXBean.setAfterCollectionUseThreshold(long) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed.
public static final java.lang.String MEMORY_USE_THRESHOLD_EXCEEDED
Notification that the memory use by this memory pool has exceeded
the threshold specified by using
MemoryPoolMXBean.setUseThreshold(long);
This is a threshold notification and
requires that a threshold value greater than zero be set using the
MemoryPoolMXBean.setUseThreshold(long) method;
The check to see whether this threshold has been exceeded is made
repeatedly at a time interval that is configurable.
public MemoryPoolNotificationInfo(java.lang.String poolName,
java.lang.String notificationReason,
long count,
MemoryUsage memoryUsage)
Constructs a MemoryPoolNotificationInfo instance.
poolName - The memory pool name.notificationReason - The reason for the notification.count - The number of times the threshold has been crossedmemoryUsage - The memory usage snapshot.java.lang.IllegalArgumentException - if poolName or notificationReason or memoryUsage is nullpublic static MemoryPoolNotificationInfo from(javax.management.openmbean.CompositeData cd)
Constructs a MemoryPoolNotificationInfo object from the CompositeData passed.
cd - The CompositeData object from which to retrieve the MemoryPoolNotificationInfo data.null if cd is null its
contents are invalid.java.lang.IllegalArgumentException - if cd does not contain
valid MemoryPoolNotification data.java.lang.NullPointerException - if attributes in the cd are not valid.public long getCount()
public MemoryUsage getMemoryUsage()
public java.lang.String getNotificationReason()
public java.lang.String getPoolName()
Submit a bug or feature request
Copyright © 2015-2017, Azul Systems, Inc. All rights reserved.
Azul Systems and Zing are registered trademarks of Azul Systems, Inc.