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