Package com.google.cloud.hadoop.gcsio
Enum StatisticTypeEnum
- java.lang.Object
-
- java.lang.Enum<StatisticTypeEnum>
-
- com.google.cloud.hadoop.gcsio.StatisticTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<StatisticTypeEnum>
public enum StatisticTypeEnum extends Enum<StatisticTypeEnum>
Enum of statistic types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TYPE_COUNTERCounter.TYPE_DURATIONDuration.TYPE_DURATION_TOTALTYPE_GAUGEGauge.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatisticTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static StatisticTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_COUNTER
public static final StatisticTypeEnum TYPE_COUNTER
Counter. Counts the number of occurrences of each operation
-
TYPE_DURATION
public static final StatisticTypeEnum TYPE_DURATION
Duration. Duration for the execution of opertaion
-
TYPE_GAUGE
public static final StatisticTypeEnum TYPE_GAUGE
Gauge.
-
TYPE_DURATION_TOTAL
public static final StatisticTypeEnum TYPE_DURATION_TOTAL
-
-
Method Detail
-
values
public static StatisticTypeEnum[] 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 (StatisticTypeEnum c : StatisticTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatisticTypeEnum 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
-
-