IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.websphere.externalnode
AverageStatistic

java.lang.Object

  |
  +--com.ibm.websphere.externalnode.Statistic
        |
        +--      com.ibm.websphere.externalnode.AverageStatistic

All Implemented Interfaces
Cloneable
, Cloneable


A simple bean class to hold the fields of an average statistic.

Field Summary
protected  longcount
           Number of samples involved in this statistic.
protected  longmin
           Minimum value of all the samples.
protected  longmax
           Maximum value of all the samples.
protected  longtotal
           Sum of the values of all the samples.

Inherited Fields

Fields inherited from com.ibm.websphere.externalnode.Statistic
description, lastSampleTime, name, nodeSpeed, numberOfCPUs, startTime, unit

Constructor Summary
AverageStatistic(long, long, long, long, long, long)
           Constructs an AverageStatistic with the specified field values.


Method Summary
public  longgetCount()
           Returns the number of samples involved in this statistic.
public  longgetMax()
           Returns the maximum value of all the samples.
public  longgetMin()
           Returns the minimum value of all the samples.
public  longgetTotal()
           Returns the sum of the values of all the samples.
public  doublegetMean()
           Returns the mean or average (getTotal() divided by getCount()).
public  Objectclone()
           Creates and returns a copy of this object.
public  StringtoString()
           Returns the String representation of this statistic.

Inherited Methods

Methods inherited from com.ibm.websphere.externalnode.Statistic
getDescription, getLastSampleTime, getName, getNodeSpeed, getNumberOfCPUs, getStartTime, getUnit, setDescription, setName, setNodeSpeed, setNumberOfCPUs, setStartAndLastSampleTimes, setUnit
Methods inherited from java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

count

protected 
  count
Number of samples involved in this statistic.


min

protected 
  min
Minimum value of all the samples.


max

protected 
  max
Maximum value of all the samples.


total

protected 
  total
Sum of the values of all the samples.


Constructor Detail

AverageStatistic

public AverageStatistic( long count,long min,long max,long total,long startTime,long lastSampleTime)
Constructs an AverageStatistic with the specified field values.
Parameters:
count - the number of samples involved in this statistic.
min - the minimum value of all the samples.
max - the maximum value of all the samples.
total - the sum of the values of all the samples.
startTime - the time of the first sample represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
lastSampleTime - the time of the last sample represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.


Method Detail

getCount

public long getCount()
Returns the number of samples involved in this statistic.


getMax

public long getMax()
Returns the maximum value of all the samples.


getMin

public long getMin()
Returns the minimum value of all the samples.


getTotal

public long getTotal()
Returns the sum of the values of all the samples.


getMean

public double getMean()
Returns the mean or average (getTotal() divided by getCount()).


clone

public Object clone()
Creates and returns a copy of this object.


toString

public String toString()
Returns the String representation of this statistic.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0