org.terracotta.management.stats
Enum StatisticType

java.lang.Object
  extended by java.lang.Enum<StatisticType>
      extended by org.terracotta.management.stats.StatisticType
All Implemented Interfaces:
Serializable, Comparable<StatisticType>

public enum StatisticType
extends Enum<StatisticType>

Author:
Ludovic Orban

Enum Constant Summary
AVERAGE
           
AVERAGE_HISTORY
           
COUNTER
           
COUNTER_HISTORY
           
DURATION
           
DURATION_HISTORY
           
RATE
           
RATE_HISTORY
           
RATIO
           
RATIO_HISTORY
           
SIZE
           
SIZE_HISTORY
           
 
Method Summary
static StatisticType fromClass(Class<? extends Statistic<?,?>> clazz)
           
 Class<? extends Statistic<?,?>> getClazz()
           
 String getTypeName()
           
static StatisticType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatisticType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.