Package org.apache.pinot.common.metrics
Enum MinionMeter
- java.lang.Object
-
- java.lang.Enum<MinionMeter>
-
- org.apache.pinot.common.metrics.MinionMeter
-
- All Implemented Interfaces:
Serializable,Comparable<MinionMeter>,AbstractMetrics.Meter
public enum MinionMeter extends Enum<MinionMeter> implements AbstractMetrics.Meter
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HEALTH_CHECK_BAD_CALLSHEALTH_CHECK_GOOD_CALLSNUMBER_TASKS_CANCELLEDNUMBER_TASKS_COMPLETEDNUMBER_TASKS_EXECUTEDNUMBER_TASKS_FAILEDNUMBER_TASKS_FATAL_FAILED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMeterName()StringgetUnit()booleanisGlobal()static MinionMetervalueOf(String name)Returns the enum constant of this type with the specified name.static MinionMeter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEALTH_CHECK_GOOD_CALLS
public static final MinionMeter HEALTH_CHECK_GOOD_CALLS
-
HEALTH_CHECK_BAD_CALLS
public static final MinionMeter HEALTH_CHECK_BAD_CALLS
-
NUMBER_TASKS_EXECUTED
public static final MinionMeter NUMBER_TASKS_EXECUTED
-
NUMBER_TASKS_COMPLETED
public static final MinionMeter NUMBER_TASKS_COMPLETED
-
NUMBER_TASKS_CANCELLED
public static final MinionMeter NUMBER_TASKS_CANCELLED
-
NUMBER_TASKS_FAILED
public static final MinionMeter NUMBER_TASKS_FAILED
-
NUMBER_TASKS_FATAL_FAILED
public static final MinionMeter NUMBER_TASKS_FATAL_FAILED
-
-
Method Detail
-
values
public static MinionMeter[] 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 (MinionMeter c : MinionMeter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MinionMeter 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
-
getMeterName
public String getMeterName()
- Specified by:
getMeterNamein interfaceAbstractMetrics.Meter
-
getUnit
public String getUnit()
- Specified by:
getUnitin interfaceAbstractMetrics.Meter
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobalin interfaceAbstractMetrics.Meter
-
-