Enum Class AggregationMode
- All Implemented Interfaces:
Serializable
,Comparable<AggregationMode>
,Constable
The aggregation mode applied to data.
- Author:
- Ville Koskela (vkoskela at dropbox dot com)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPersist the statistics data as provided by the client.Persist the statistics data as provided by the client AND reaggregate the statistics data provided by the client persisting the reaggregated data as well.Reaggregate the statistics data provided by the client and persist only the reaggregated data. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether thisAggregationMode
should persist client statistics.boolean
Whether thisAggregationMode
should reaggregate client statistics.static AggregationMode
Returns the enum constant of this class with the specified name.static AggregationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERSIST
Persist the statistics data as provided by the client. -
REAGGREGATE
Reaggregate the statistics data provided by the client and persist only the reaggregated data. -
PERSIST_AND_REAGGREGATE
Persist the statistics data as provided by the client AND reaggregate the statistics data provided by the client persisting the reaggregated data as well.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
shouldPersist
public boolean shouldPersist()Whether thisAggregationMode
should persist client statistics.- Returns:
- True if and only if client statistics should be persisted
-
shouldReaggregate
public boolean shouldReaggregate()Whether thisAggregationMode
should reaggregate client statistics.- Returns:
- True if and only if client statistics should be reaggregated
-