Package com.amazonaws.test.util
Enum Memory
- java.lang.Object
-
- java.lang.Enum<Memory>
-
- com.amazonaws.test.util.Memory
-
- All Implemented Interfaces:
Serializable
,Comparable<Memory>
public enum Memory extends Enum<Memory>
Used to retrieve information about the JVM memory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
heapSummary()
Returns a summary information about the heap memory.static String
poolSummaries()
Returns a summary information about the memory pools.static Memory
valueOf(String name)
Returns the enum constant of this type with the specified name.static Memory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Memory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Memory c : Memory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Memory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
heapSummary
public static String heapSummary()
Returns a summary information about the heap memory.
-
poolSummaries
public static String poolSummaries()
Returns a summary information about the memory pools.
-
-