Class Aggregates

java.lang.Object
org.rrd4j.data.Aggregates

@Deprecated public class Aggregates extends Object
Deprecated.
This class is deprecated. Uses instance of Variable, used with DataProcessor.addDatasource(String, String, Variable).
Simple class which holds aggregated values (MIN, MAX, FIRST, LAST, AVERAGE and TOTAL). You don't need to create objects of this class directly. Objects of this class are returned from getAggregates() method in FetchData and DataProcessor.getAggregates(String) DataProcessor classes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) double
    Deprecated.
     
    (package private) double
    Deprecated.
     
    (package private) double
    Deprecated.
     
    (package private) double
    Deprecated.
     
    (package private) double
    Deprecated.
     
    (package private) double
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns String representing all aggregated values.
    double
    Deprecated.
    Returns single aggregated value for the give consolidation function
    double
    Deprecated.
    Returns average
    double
    Deprecated.
    Returns the first value
    double
    Deprecated.
    Returns the last value
    double
    Deprecated.
    Returns the maximum value
    double
    Deprecated.
    Returns the minimal value
    double
    Deprecated.
    Returns total value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • min

      double min
      Deprecated.
    • max

      double max
      Deprecated.
    • first

      double first
      Deprecated.
    • last

      double last
      Deprecated.
    • average

      double average
      Deprecated.
    • total

      double total
      Deprecated.
  • Constructor Details

    • Aggregates

      public Aggregates()
      Deprecated.
  • Method Details

    • getMin

      public double getMin()
      Deprecated.
      Returns the minimal value
      Returns:
      Minimal value
    • getMax

      public double getMax()
      Deprecated.
      Returns the maximum value
      Returns:
      Maximum value
    • getFirst

      public double getFirst()
      Deprecated.
      Returns the first value
      Returns:
      First value
    • getLast

      public double getLast()
      Deprecated.
      Returns the last value
      Returns:
      Last value
    • getAverage

      public double getAverage()
      Deprecated.
      Returns average
      Returns:
      Average value
    • getTotal

      public double getTotal()
      Deprecated.
      Returns total value
      Returns:
      Total value
    • getAggregate

      public double getAggregate(ConsolFun consolFun)
      Deprecated.
      Returns single aggregated value for the give consolidation function
      Parameters:
      consolFun - Consolidation function: MIN, MAX, FIRST, LAST, AVERAGE, TOTAL. These constants are conveniently defined in the ConsolFun interface.
      Returns:
      Aggregated value
      Throws:
      IllegalArgumentException - Thrown if unsupported consolidation function is supplied
    • dump

      public String dump()
      Deprecated.
      Returns String representing all aggregated values. Just for debugging purposes.
      Returns:
      String containing all aggregated values