Class StatisticsReading

java.lang.Object
com.ibm.websphere.monitor.jmx.StatisticsReading

public class StatisticsReading extends Object
Represents a snapshot of a StatisticsMeter. A StatisticsReading holds the current values of the StatisticsMeter at the time it was obtained and will not change.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatisticsReading(long timestamp, long count, long min, long max, double total, double mean, double variance, double stddev, String unit)
    Constructor used during construction of proxy objects for MXBeans.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the number of data points that had been added to the meter at the time the reading was taken.
    long
    Get the maximum data point value that had been added to the meter at the time this reading was taken.
    double
    Get the mean or average of the data points that had been added to the meter at the time this reading was taken.
    long
    Get the minimum data point value that had been added to the meter at the time this reading was taken.
    double
    Get the standard deviation of the data points that had been added to the meter at the time this reading was taken.
    long
     
    double
    Get the total or sum of the data points that had been added to the meter at the time this reading was taken.
     
    double
    Get the variance of the data points that had been added to the meter at the time this reading was taken.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatisticsReading

      @ConstructorProperties({"timestamp","count","minimumValue","maximumValue","total","mean","variance","standardDeviation","unit"}) public StatisticsReading(long timestamp, long count, long min, long max, double total, double mean, double variance, double stddev, String unit)
      Constructor used during construction of proxy objects for MXBeans.
  • Method Details

    • getTimestamp

      public long getTimestamp()
      Returns:
      timestamp of the statistics reading
    • getCount

      public long getCount()
      Get the number of data points that had been added to the meter at the time the reading was taken.
      Returns:
      the number of data points
    • getMinimumValue

      public long getMinimumValue()
      Get the minimum data point value that had been added to the meter at the time this reading was taken.
      Returns:
      the minimum data point or 0 if no data points had been added
    • getMaximumValue

      public long getMaximumValue()
      Get the maximum data point value that had been added to the meter at the time this reading was taken.
      Returns:
      the maximum data point or 0 if no data points had been added
    • getTotal

      public double getTotal()
      Get the total or sum of the data points that had been added to the meter at the time this reading was taken.
      Returns:
      the total or sum of the data points
    • getMean

      public double getMean()
      Get the mean or average of the data points that had been added to the meter at the time this reading was taken.
      Returns:
      the mean or average of the data points
    • getVariance

      public double getVariance()
      Get the variance of the data points that had been added to the meter at the time this reading was taken.
      Returns:
      the variance of the data
    • getStandardDeviation

      public double getStandardDeviation()
      Get the standard deviation of the data points that had been added to the meter at the time this reading was taken.
      Returns:
      the standard deviation of the data
    • getUnit

      public String getUnit()
      Returns:
      unit of measurement of the data points