public class GarbageCollectorNotificationInfo
extends java.lang.Object
Garbage collector notification information.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_THREAD_ALLOCATION_DELAYED_NOTIFICATION
Notification that at least one application thread was required to wait
because its request to allocate memory was not able to be satisfied because
no free memory was available; This is an event
notification and requires only that a notification listener be added.
|
static java.lang.String |
GARBAGE_COLLECTION_DURATION_THRESHOLD_EXCEEDED
Notification that the time required to complete a garbage collection
(the duration of the garbage collection)
exceeded the specified threshold;
This is a threshold notification and
requires that a threshold value greater than zero be set using the
GarbageCollectorMXBean.setGarbageCollectionDurationThreshold(double) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed. |
static java.lang.String |
GARBAGE_COLLECTION_NOTIFICATION
Notification that a garbage collection for a specific collector has completed;
This is an event notification and requires only that a notification listener be added.
|
static java.lang.String |
GARBAGE_COLLECTION_PAUSE_DURATION_THRESHOLD_EXCEEDED
Notification that a pause required by the garbage collector exceeded the
specified threshold;
This is a threshold notification and
requires that a threshold value greater than zero be set using the
GarbageCollectorMXBean.setGarbageCollectionPauseDurationThreshold(double) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed. |
static java.lang.String |
PERCENTAGE_OF_TIME_COLLECTOR_IS_RUNNING_THRESHOLD_EXCEEDED
Notification that the garbage collector was running for a higher percentage
of time than the specified threshold;
This is a threshold notification and
requires that a threshold value greater than zero be set using the
GarbageCollectorMXBean.setPercentageOfTimeCollectorIsRunningThreshold(double) method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed. |
Constructor and Description |
---|
GarbageCollectorNotificationInfo(java.lang.String collectorName,
java.lang.String notificationReason,
long count,
GCDetails gcDetails)
Constructs a
GarbageCollectorNotificationInfo instance. |
Modifier and Type | Method and Description |
---|---|
static GarbageCollectorNotificationInfo |
from(javax.management.openmbean.CompositeData cd)
Constructs a
GarbageCollectorNotificationInfo object from the CompositeData passed. |
java.lang.String |
getCollectorName() |
long |
getCount() |
GCDetails |
getGCDetails() |
java.lang.String |
getNotificationReason() |
public static final java.lang.String APPLICATION_THREAD_ALLOCATION_DELAYED_NOTIFICATION
Notification that at least one application thread was required to wait because its request to allocate memory was not able to be satisfied because no free memory was available; This is an event notification and requires only that a notification listener be added.
public static final java.lang.String GARBAGE_COLLECTION_DURATION_THRESHOLD_EXCEEDED
Notification that the time required to complete a garbage collection
(the duration of the garbage collection)
exceeded the specified threshold;
This is a threshold notification and
requires that a threshold value greater than zero be set using the
GarbageCollectorMXBean.setGarbageCollectionDurationThreshold(double)
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 GARBAGE_COLLECTION_NOTIFICATION
Notification that a garbage collection for a specific collector has completed; This is an event notification and requires only that a notification listener be added.
public static final java.lang.String GARBAGE_COLLECTION_PAUSE_DURATION_THRESHOLD_EXCEEDED
Notification that a pause required by the garbage collector exceeded the
specified threshold;
This is a threshold notification and
requires that a threshold value greater than zero be set using the
GarbageCollectorMXBean.setGarbageCollectionPauseDurationThreshold(double)
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 PERCENTAGE_OF_TIME_COLLECTOR_IS_RUNNING_THRESHOLD_EXCEEDED
Notification that the garbage collector was running for a higher percentage
of time than the specified threshold;
This is a threshold notification and
requires that a threshold value greater than zero be set using the
GarbageCollectorMXBean.setPercentageOfTimeCollectorIsRunningThreshold(double)
method;
The check to see whether this threshold has been exceeded is made
after each garbage collection has completed.
public GarbageCollectorNotificationInfo(java.lang.String collectorName, java.lang.String notificationReason, long count, GCDetails gcDetails)
Constructs a GarbageCollectorNotificationInfo
instance.
collectorName
- The garbage collector name.notificationReason
- The reason for the notification.count
- The number of times the threshold has been crossedgcDetails
- The details of the last collectionjava.lang.IllegalArgumentException
- if collectorName
or notificationReason
or gcDetails
is null
public static GarbageCollectorNotificationInfo from(javax.management.openmbean.CompositeData cd)
Constructs a GarbageCollectorNotificationInfo
object from the CompositeData
passed.
cd
- The CompositeData
object from which to retrieve the GarbageCollectorNotificationInfo
data.null
if cd
is null
its
contents are invalid.java.lang.IllegalArgumentException
- if cd
does not contain
valid GarbageCollectorNotification
data.java.lang.NullPointerException
- if attributes in the cd
are not valid.public java.lang.String getCollectorName()
public long getCount()
public GCDetails getGCDetails()
public java.lang.String getNotificationReason()
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.