Package org.apache.pinot.common.metrics
Enum ControllerTimer
- java.lang.Object
-
- java.lang.Enum<ControllerTimer>
-
- org.apache.pinot.common.metrics.ControllerTimer
-
- All Implemented Interfaces:
Serializable,Comparable<ControllerTimer>,java.lang.constant.Constable,AbstractMetrics.Timer
public enum ControllerTimer extends Enum<ControllerTimer> implements AbstractMetrics.Timer
Enumeration containing all the timers exposed by the Pinot controller.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRON_SCHEDULER_JOB_EXECUTION_TIME_MS
-
Method Summary
Modifier and Type Method Description StringgetTimerName()booleanisGlobal()Returns true if the timer is global (not attached to a particular resource)static ControllerTimervalueOf(String name)Returns the enum constant of this type with the specified name.static ControllerTimer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CRON_SCHEDULER_JOB_EXECUTION_TIME_MS
public static final ControllerTimer CRON_SCHEDULER_JOB_EXECUTION_TIME_MS
-
-
Method Detail
-
values
public static ControllerTimer[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControllerTimer 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
-
getTimerName
public String getTimerName()
- Specified by:
getTimerNamein interfaceAbstractMetrics.Timer
-
isGlobal
public boolean isGlobal()
Returns true if the timer is global (not attached to a particular resource)- Specified by:
isGlobalin interfaceAbstractMetrics.Timer- Returns:
- true if the timer is global
-
-