Package com.mapr.baseutils.metric
Enum MetricRepo.MetricType
- java.lang.Object
-
- java.lang.Enum<MetricRepo.MetricType>
-
- com.mapr.baseutils.metric.MetricRepo.MetricType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MetricRepo.MetricType>
- Enclosing interface:
- MetricRepo
public static enum MetricRepo.MetricType extends java.lang.Enum<MetricRepo.MetricType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOBNODETASKTASKATTEMPT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetricRepo.MetricTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MetricRepo.MetricType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOB
public static final MetricRepo.MetricType JOB
-
TASK
public static final MetricRepo.MetricType TASK
-
TASKATTEMPT
public static final MetricRepo.MetricType TASKATTEMPT
-
NODE
public static final MetricRepo.MetricType NODE
-
-
Method Detail
-
values
public static MetricRepo.MetricType[] 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 (MetricRepo.MetricType c : MetricRepo.MetricType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricRepo.MetricType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-