Enum Class AggregationMode

java.lang.Object
java.lang.Enum<AggregationMode>
com.arpnetworking.clusteraggregator.models.AggregationMode
All Implemented Interfaces:
Serializable, Comparable<AggregationMode>, Constable

public enum AggregationMode extends Enum<AggregationMode>
The aggregation mode applied to data.
Author:
Ville Koskela (vkoskela at dropbox dot com)
  • Enum Constant Details

    • PERSIST

      public static final AggregationMode PERSIST
      Persist the statistics data as provided by the client.
    • REAGGREGATE

      public static final AggregationMode REAGGREGATE
      Reaggregate the statistics data provided by the client and persist only the reaggregated data.
    • PERSIST_AND_REAGGREGATE

      public static final AggregationMode 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

      public static AggregationMode[] 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

      public static AggregationMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • shouldPersist

      public boolean shouldPersist()
      Whether this AggregationMode should persist client statistics.
      Returns:
      True if and only if client statistics should be persisted
    • shouldReaggregate

      public boolean shouldReaggregate()
      Whether this AggregationMode should reaggregate client statistics.
      Returns:
      True if and only if client statistics should be reaggregated