MemoryNotificationInfo


MemoryNotificationInfo java.lang.management

Java 5.0

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  ( );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net