org.terracotta.management.stats
Enum StatisticType
java.lang.Object
java.lang.Enum<StatisticType>
org.terracotta.management.stats.StatisticType
- All Implemented Interfaces:
- Serializable, Comparable<StatisticType>
public enum StatisticType
- extends Enum<StatisticType>
- Author:
- Ludovic Orban
COUNTER
public static final StatisticType COUNTER
DURATION
public static final StatisticType DURATION
RATE
public static final StatisticType RATE
RATIO
public static final StatisticType RATIO
SIZE
public static final StatisticType SIZE
AVERAGE
public static final StatisticType AVERAGE
COUNTER_HISTORY
public static final StatisticType COUNTER_HISTORY
DURATION_HISTORY
public static final StatisticType DURATION_HISTORY
RATE_HISTORY
public static final StatisticType RATE_HISTORY
RATIO_HISTORY
public static final StatisticType RATIO_HISTORY
SIZE_HISTORY
public static final StatisticType SIZE_HISTORY
AVERAGE_HISTORY
public static final StatisticType AVERAGE_HISTORY
values
public static StatisticType[] 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 (StatisticType c : StatisticType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static StatisticType 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 name
NullPointerException - if the argument is null
getClazz
public Class<? extends Statistic<?,?>> getClazz()
getTypeName
public String getTypeName()
fromClass
public static StatisticType fromClass(Class<? extends Statistic<?,?>> clazz)
Copyright © 2015. All Rights Reserved.