jdk/src/share/classes/sun/management/MemoryImpl.java
changeset 4156 acaa49a2768a
parent 1226 eba24d3b9c0c
child 5506 202f599c92aa
equal deleted inserted replaced
4155:460e37d40f12 4156:acaa49a2768a
    32 import java.lang.management.MemoryManagerMXBean;
    32 import java.lang.management.MemoryManagerMXBean;
    33 import java.lang.management.MemoryPoolMXBean;
    33 import java.lang.management.MemoryPoolMXBean;
    34 import javax.management.ObjectName;
    34 import javax.management.ObjectName;
    35 import javax.management.MBeanNotificationInfo;
    35 import javax.management.MBeanNotificationInfo;
    36 import javax.management.Notification;
    36 import javax.management.Notification;
    37 import javax.management.NotificationEmitter;
       
    38 import javax.management.NotificationFilter;
       
    39 import javax.management.NotificationListener;
       
    40 import javax.management.ListenerNotFoundException;
       
    41 import javax.management.openmbean.CompositeData;
    37 import javax.management.openmbean.CompositeData;
    42 import java.util.List;
       
    43 import java.util.ArrayList;
       
    44 import java.util.ListIterator;
       
    45 import java.util.Collections;
       
    46 
    38 
    47 /**
    39 /**
    48  * Implementation class for the memory subsystem.
    40  * Implementation class for the memory subsystem.
    49  * Standard and committed hotspot-specific metrics if any.
    41  * Standard and committed hotspot-specific metrics if any.
    50  *
    42  *
   175         notif.setUserData(cd);
   167         notif.setUserData(cd);
   176         mbean.sendNotification(notif);
   168         mbean.sendNotification(notif);
   177     }
   169     }
   178 
   170 
   179     public ObjectName getObjectName() {
   171     public ObjectName getObjectName() {
   180         return ObjectName.valueOf(ManagementFactory.MEMORY_MXBEAN_NAME);
   172         return Util.newObjectName(ManagementFactory.MEMORY_MXBEAN_NAME);
   181     }
   173     }
   182 
   174 
   183 }
   175 }