Enum GcAnalyzer.GcType
- java.lang.Object
-
- java.lang.Enum<GcAnalyzer.GcType>
-
- com.couchbase.client.core.cnc.diagnostics.GcAnalyzer.GcType
-
- All Implemented Interfaces:
Serializable
,Comparable<GcAnalyzer.GcType>
- Enclosing class:
- GcAnalyzer
public static enum GcAnalyzer.GcType extends Enum<GcAnalyzer.GcType>
Holds the known type of garbage collectors and their representations in the GC logs in textual format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONCURRENT_MARK_SWEEP
The concurrent mark sweep collector.COPY
The good old serial copy collector (enabled via -XX:+UseSerialGC).G1_OLD
Old generation collection of the g1 collector.G1_YOUNG
Young generation collection of the g1 collector.MARK_SWEEP_COMPACT
The good old serial mark and sweep compactor (enabled via -XX:+UseSerialGC).PAR_NEW
The ParNew collector.PS_MARK_SWEEP
The old generation parallel scavenge collector.PS_SCAVENGE
The young generation parallel scavenge collector.UNKNOWN
We couldn't figure out the gc type, sorry!
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GcAnalyzer.Concurrency
concurrency()
static GcAnalyzer.GcType
fromString(String name)
Helper method to get theGcAnalyzer.GcType
for the string representation.GcAnalyzer.GcGeneration
generation()
String
identifier()
String
toString()
static GcAnalyzer.GcType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GcAnalyzer.GcType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PS_SCAVENGE
public static final GcAnalyzer.GcType PS_SCAVENGE
The young generation parallel scavenge collector.
-
PS_MARK_SWEEP
public static final GcAnalyzer.GcType PS_MARK_SWEEP
The old generation parallel scavenge collector.
-
COPY
public static final GcAnalyzer.GcType COPY
The good old serial copy collector (enabled via -XX:+UseSerialGC).
-
MARK_SWEEP_COMPACT
public static final GcAnalyzer.GcType MARK_SWEEP_COMPACT
The good old serial mark and sweep compactor (enabled via -XX:+UseSerialGC).
-
G1_YOUNG
public static final GcAnalyzer.GcType G1_YOUNG
Young generation collection of the g1 collector.
-
G1_OLD
public static final GcAnalyzer.GcType G1_OLD
Old generation collection of the g1 collector.
-
PAR_NEW
public static final GcAnalyzer.GcType PAR_NEW
The ParNew collector.
-
CONCURRENT_MARK_SWEEP
public static final GcAnalyzer.GcType CONCURRENT_MARK_SWEEP
The concurrent mark sweep collector.
-
UNKNOWN
public static final GcAnalyzer.GcType UNKNOWN
We couldn't figure out the gc type, sorry!
-
-
Method Detail
-
values
public static GcAnalyzer.GcType[] 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 (GcAnalyzer.GcType c : GcAnalyzer.GcType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GcAnalyzer.GcType 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
-
identifier
public String identifier()
-
generation
public GcAnalyzer.GcGeneration generation()
-
concurrency
public GcAnalyzer.Concurrency concurrency()
-
toString
public String toString()
- Overrides:
toString
in classEnum<GcAnalyzer.GcType>
-
fromString
public static GcAnalyzer.GcType fromString(String name)
Helper method to get theGcAnalyzer.GcType
for the string representation.- Parameters:
name
- the name of the gc type from the JVM.- Returns:
- the type if found or UNKNOWN otherwise.
-
-