Enum Class Unit

java.lang.Object
java.lang.Enum<Unit>
com.yahoo.metrics.Unit
All Implemented Interfaces:
Serializable, Comparable<Unit>, Constable

public enum Unit extends Enum<Unit>
Author:
gjoranv
  • Enum Constant Details

    • BINARY

      public static final Unit BINARY
    • BYTE

      public static final Unit BYTE
    • CONNECTION

      public static final Unit CONNECTION
    • DOCUMENT

      public static final Unit DOCUMENT
    • DOCUMENT_PER_SECOND

      public static final Unit DOCUMENT_PER_SECOND
    • FRACTION

      public static final Unit FRACTION
    • HIT

      public static final Unit HIT
    • HIT_PER_QUERY

      public static final Unit HIT_PER_QUERY
    • ITEM

      public static final Unit ITEM
    • MILLISECOND

      public static final Unit MILLISECOND
    • NODE

      public static final Unit NODE
    • OPERATION

      public static final Unit OPERATION
    • OPERATION_PER_SECOND

      public static final Unit OPERATION_PER_SECOND
    • QUERY

      public static final Unit QUERY
    • QUERY_PER_SECOND

      public static final Unit QUERY_PER_SECOND
    • REQUEST

      public static final Unit REQUEST
    • RESPONSE

      public static final Unit RESPONSE
    • RESPONSE_PER_SECOND

      public static final Unit RESPONSE_PER_SECOND
    • SCORE

      public static final Unit SCORE
    • SECOND

      public static final Unit SECOND
    • THREAD

      public static final Unit THREAD
    • VERSION

      public static final Unit VERSION
  • Method Details

    • values

      public static Unit[] 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 Unit 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
    • fullName

      public String fullName()
    • shortName

      public String shortName()