< prev index next >

agent/src/share/classes/sun/jvm/hotspot/gc_interface/CollectedHeapName.java

Print this page




  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package sun.jvm.hotspot.gc_interface;
  26 
  27 /** Mimics the enums in the VM under CollectedHeap::Name */
  28 
  29 public class CollectedHeapName {
  30   private String name;
  31 
  32   private CollectedHeapName(String name) { this.name = name; }
  33 
  34   public static final CollectedHeapName ABSTRACT = new CollectedHeapName("abstract");
  35   public static final CollectedHeapName SHARED_HEAP = new CollectedHeapName("SharedHeap");
  36   public static final CollectedHeapName GEN_COLLECTED_HEAP = new CollectedHeapName("GenCollectedHeap");
  37   public static final CollectedHeapName G1_COLLECTED_HEAP = new CollectedHeapName("G1CollectedHeap");
  38   public static final CollectedHeapName PARALLEL_SCAVENGE_HEAP = new CollectedHeapName("ParallelScavengeHeap");

  39 
  40   public String toString() {
  41     return name;
  42   }
  43 }


  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package sun.jvm.hotspot.gc_interface;
  26 
  27 /** Mimics the enums in the VM under CollectedHeap::Name */
  28 
  29 public class CollectedHeapName {
  30   private String name;
  31 
  32   private CollectedHeapName(String name) { this.name = name; }
  33 
  34   public static final CollectedHeapName ABSTRACT = new CollectedHeapName("abstract");
  35   public static final CollectedHeapName SHARED_HEAP = new CollectedHeapName("SharedHeap");
  36   public static final CollectedHeapName GEN_COLLECTED_HEAP = new CollectedHeapName("GenCollectedHeap");
  37   public static final CollectedHeapName G1_COLLECTED_HEAP = new CollectedHeapName("G1CollectedHeap");
  38   public static final CollectedHeapName PARALLEL_SCAVENGE_HEAP = new CollectedHeapName("ParallelScavengeHeap");
  39   public static final CollectedHeapName SHENANDOAH_HEAP = new CollectedHeapName("ShenandoahHeap");
  40 
  41   public String toString() {
  42     return name;
  43   }
  44 }
< prev index next >