March 2005
Beginner to intermediate
1254 pages
104h 21m
English
MemoryNotificationInfo
This class holds information about memory usage
in a given memory pool and is generated when that usage crosses a
threshold specified by a MemoryPoolMXBean. Use the
from( )
method to construct a
MemoryNotificationInfo object from the user data
of a javax.management.Notification object.
Notifications and the javax.management package are
beyond the scope of this book.
public class MemoryNotificationInfo { // Public Constructors public MemoryNotificationInfo(String poolName, MemoryUsage usage, long count); // Public Constants public static final String MEMORY_COLLECTION_THRESHOLD_EXCEEDED; ="java.management.memory.collection.threshold.exceeded" public static final String MEMORY_THRESHOLD_EXCEEDED; ="java.management.memory.threshold.exceeded" // Public Class Methods public static MemoryNotificationInfo from(javax.management.openmbean.CompositeData cd); // Public Instance Methods public long getCount( ); public String getPoolName( ); public MemoryUsage getUsage( ); }
Read now
Unlock full access