Package com.atlassian.beehive.core.stats
Enum StatisticsType
- All Implemented Interfaces:
Serializable,Comparable<StatisticsType>,java.lang.constant.Constable
The type of statistic that a
StatisticsKey represents.
The different types of statistics have different underlying meanings and might be represented differently in a management user interface.
- Since:
- v0.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA statistic that counts the number of times an event has occurred, such as the number of times that a given lock has been acquired.A statistic that represents something that represents a varying measurement, such as the number of threads that are currently waiting to acquire a given lock. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatisticsTypeReturns the enum constant of this type with the specified name.static StatisticsType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COUNTER
A statistic that counts the number of times an event has occurred, such as the number of times that a given lock has been acquired.Statistics of this type should strictly increase in value, as they represent a tally of events that have already occurred, not a currently measured value.
-
GAUGE
A statistic that represents something that represents a varying measurement, such as the number of threads that are currently waiting to acquire a given lock.Statistics of this type may either increase or decrease over time, as they represent a currently measure value, not a tally of discrete events.
-
-
Method Details
-
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
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
-