src/share/classes/com/sun/tools/hat/internal/server/FinalizerObjectsQuery.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 /*
  28  * The Original Code is HAT. The Initial Developer of the
  29  * Original Code is Bill Foote, with contributions from others
  30  * at JavaSoft/Sun.
  31  */
  32 
  33 package com.sun.tools.hat.internal.server;
  34 
  35 import com.sun.tools.hat.internal.model.*;
  36 import java.util.*;
  37 
  38 public class FinalizerObjectsQuery extends QueryHandler {
  39     public void run() {
  40         Enumeration objs = snapshot.getFinalizerObjects();
  41         startHtml("Objects pending finalization");
  42 
  43         out.println("<a href='/finalizerSummary/'>Finalizer summary</a>");
  44 
  45         out.println("<h1>Objects pending finalization</h1>");
  46 
  47         while (objs.hasMoreElements()) {
  48             printThing((JavaHeapObject)objs.nextElement());
  49             out.println("<br>");
  50         }
  51 
  52         endHtml();
  53     }
  54 }


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 /*
  28  * The Original Code is HAT. The Initial Developer of the
  29  * Original Code is Bill Foote, with contributions from others
  30  * at JavaSoft/Sun.
  31  */
  32 
  33 package com.sun.tools.hat.internal.server;
  34 
  35 import com.sun.tools.hat.internal.model.*;
  36 import java.util.*;
  37 
  38 public class FinalizerObjectsQuery extends QueryHandler {
  39     public void run() {
  40         Enumeration<?> objs = snapshot.getFinalizerObjects();
  41         startHtml("Objects pending finalization");
  42 
  43         out.println("<a href='/finalizerSummary/'>Finalizer summary</a>");
  44 
  45         out.println("<h1>Objects pending finalization</h1>");
  46 
  47         while (objs.hasMoreElements()) {
  48             printThing((JavaHeapObject)objs.nextElement());
  49             out.println("<br>");
  50         }
  51 
  52         endHtml();
  53     }
  54 }