java.lang.management
Enum MemoryType

java.lang.Object
  extended by java.lang.Enum
      extended by java.lang.management.MemoryType
All Implemented Interfaces:
Comparable, Serializable

public static enum MemoryType
extends Enum<MemoryType>

Types of memory pools.

Since:
1.5

Enum Constant Summary
HEAP
          Heap memory type.
NON_HEAP
          Non-heap memory type.
 
Method Summary
 String toString()
          Returns the string representation of this MemoryType.
static MemoryType valueOf(String name)
           
static MemoryType[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Enum Constant Detail

HEAP

public static final MemoryType HEAP
Heap memory type.

The Java virtual machine has a heap that is the runtime data area from which memory for all class instances and arrays are allocated.


NON_HEAP

public static final MemoryType NON_HEAP
Non-heap memory type.

The Java virtual machine manages memory other than the heap (referred as non-heap memory). The non-heap memory includes the method area and memory required for the internal processing or optimization for the Java virtual machine. It stores per-class structures such as a runtime constant pool, field and method data, and the code for methods and constructors.

Method Detail

values

public static final MemoryType[] values()

valueOf

public static MemoryType valueOf(String name)

toString

public String toString()
Returns the string representation of this MemoryType.

Overrides:
toString in class Enum
Returns:
the string representation of this MemoryType.