Package java.lang.management

Examples of java.lang.management.MemoryType


    java.util.List<MemoryPoolMXBean> manager = ManagementFactory.getMemoryPoolMXBeans();
    Iterator<MemoryPoolMXBean> it = manager.iterator();
   
    MemoryPoolMXBean bean;
    MemoryUsage usage;
    MemoryType _type;
    Struct sct=new StructImpl();
    while(it.hasNext()){
      bean = it.next();
      usage = bean.getUsage();
      _type = bean.getType();
View Full Code Here


     * @return if <code>data</code> can be used to obtain an instance of
     *         <code>MemoryType</code> then a <code>MemoryType</code>,
     *         otherwise <code>null</code>.
     */
    private static MemoryType convertStringToMemoryType(String data) {
        MemoryType result = null;
        try {
            result = MemoryType.valueOf(data);
        } catch (IllegalArgumentException e) {
            if (ManagementUtils.VERBOSE_MODE) {
                e.printStackTrace(System.err);
View Full Code Here

      for (MemoryPoolMXBean pool : poolList)
      {
         // MemoryPoolMXBean instance
         String name = pool.getName();
         // enum MemoryType
         MemoryType type = pool.getType();
         sbuf.append("<b>Pool: ").append(name);
         sbuf.append("</b> (").append(type).append(")");

         // PeakUsage/CurrentUsage
         MemoryUsage peakUsage = pool.getPeakUsage();
View Full Code Here

TOP

Related Classes of java.lang.management.MemoryType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.