com.ibm.websphere.monitor.jmx
Class StatisticsReading

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

public class StatisticsReading
extends java.lang.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
StatisticsReading(long timestamp, long count, long min, long max, double total, double mean, double variance, double stddev, java.lang.String unit)
          Constructor used during construction of proxy objects for MXBeans.
 
Method Summary
 long getCount()
          Get the number of data points that had been added to the meter at the time the reading was taken.
 long getMaximumValue()
          Get the maximum data point value that had been added to the meter at the time this reading was taken.
 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.
 long getMinimumValue()
          Get the minimum data point value that had been added to the meter at the time this reading was taken.
 double getStandardDeviation()
          Get the standard deviation of the data points that had been added to the meter at the time this reading was taken.
 long getTimestamp()
           
 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.
 java.lang.String getUnit()
           
 double getVariance()
          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 Detail

StatisticsReading

@ConstructorProperties(value={"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,
                                               java.lang.String unit)
Constructor used during construction of proxy objects for MXBeans.

Method Detail

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 java.lang.String getUnit()
Returns:
unit of measurement of the data points