Class Value

java.lang.Object
com.yahoo.statistics.Handle
com.yahoo.statistics.Value

@Deprecated public class Value extends Handle
Deprecated.
A statistical variable, typically representing a sampling of an arbitrarily changing parameter.
Author:
Steinar Knutsen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
    Parameters for building Value instances.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Value(String name, Statistics manager, Value.Parameters parameters)
    Deprecated.
    Configure a Value instance fully, no raw config access.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Value
    buildValue(String name, Statistics manager, Value.Parameters defaults)
    Deprecated.
    Build a Value which should be initialized from config.
    boolean
    Deprecated.
     
    double
    get()
    Deprecated.
    Get last value logged, 0 if nothing logged since reset.
    double
    Deprecated.
    Get maximum value logged since last reset.
    double
    Deprecated.
    Get mean value since last reset.
    double
    Deprecated.
    Get minimal value logged since last reset.
    int
    Deprecated.
     
    void
    put(double x)
    Deprecated.
    Insert x, do all pertinent operations.
    void
    Deprecated.
    Set last value logged container to 0, reset histogram and set all counters and derived statistics to 0.
    void
    Deprecated.
    Dump state to log and reset.
    Deprecated.
     

    Methods inherited from class com.yahoo.statistics.Handle

    cancel, isCancelled, run, runCallback

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Value

      public Value(String name, Statistics manager, Value.Parameters parameters)
      Deprecated.
      Configure a Value instance fully, no raw config access.
      Parameters:
      name - tag for logging
      manager - the statistics manager acquired by injection
      parameters - all the parameters necessary for initializing a Value
      Throws:
      IllegalStateException - if Parameters.limits exists and is not frozen
  • Method Details

    • buildValue

      public static Value buildValue(String name, Statistics manager, Value.Parameters defaults)
      Deprecated.
      Build a Value which should be initialized from config.
      Parameters:
      name - the name of the event in the log
      manager - the current Statistics manager, acquired by injection
      defaults - defaults for values not defined by config, this may be null
    • put

      public void put(double x)
      Deprecated.
      Insert x, do all pertinent operations. (Update histogram, update insertion count for calculating mean, etc.)
    • getMean

      public double getMean()
      Deprecated.
      Get mean value since last reset.
    • getMin

      public double getMin()
      Deprecated.
      Get minimal value logged since last reset.
    • getMax

      public double getMax()
      Deprecated.
      Get maximum value logged since last reset.
    • get

      public double get()
      Deprecated.
      Get last value logged, 0 if nothing logged since reset.
    • reset

      public void reset()
      Deprecated.
      Set last value logged container to 0, reset histogram and set all counters and derived statistics to 0.
    • runHandle

      public void runHandle()
      Deprecated.
      Dump state to log and reset.
      Specified by:
      runHandle in class Handle
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Specified by:
      equals in class Handle
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in class Handle