IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.websphere.externalnode
Statistic

java.lang.Object

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

All Implemented Interfaces
Cloneable


The base class for all other statistic classes.

All fields are optional fields. Subclasses may dictate certain fields as mandatory.


Field Summary
protected  Stringname
           Name of this statistic.
protected  Stringdescription
           Description of this statistic.
protected  Stringunit
           The unit of measurement for this statistic.
protected  longstartTime
           Time the first measurement was taken.
protected  longlastSampleTime
           Time the last measurement was taken.
protected  floatnodeSpeed
           The average system speed in MHz.
protected  intnumberOfCPUs
           The number of Central Processing Units in the system.

Constructor Summary
Statistic()
           Constructs an empty Statistic object with default field values.


Method Summary
public  StringgetName()
           Returns the name of this statistic. .
public  voidsetName(java.lang.String)
           Sets the name of this statistic.
public  StringgetUnit()
           Returns the unit of measurement for this statistic..
public  voidsetUnit(java.lang.String)
           Sets the unit of measurement for this statistic.
public  StringgetDescription()
           Returns a human-readable description of this statistic..
public  voidsetDescription(java.lang.String)
           Sets a human-readable description of this statistic.
public  longgetStartTime()
           Returns the time the first measurement was taken represented as a long..
public  longgetLastSampleTime()
           Returns the time the last measurement was taken represented as a long..
public  voidsetStartAndLastSampleTimes(long, long)
           Sets the start time and last sample time.
public  Objectclone()
           Creates and returns a copy of this object.
public  floatgetNodeSpeed()
           Returns the average system speed in MHz..
public  voidsetNodeSpeed(float)
           Sets the average system speed in MHz.
public  intgetNumberOfCPUs()
           Returns the number of Central Processing Units in the system.
public  voidsetNumberOfCPUs(int)
           Sets the number of Central Processing Units in the system.

Inherited Methods

Methods inherited from java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

name

protected 
  name
Name of this statistic.


description

protected 
  description
Description of this statistic.


unit

protected 
  unit
The unit of measurement for this statistic.


startTime

protected 
  startTime
Time the first measurement was taken.


lastSampleTime

protected 
  lastSampleTime
Time the last measurement was taken.


nodeSpeed

protected 
  nodeSpeed
The average system speed in MHz.


numberOfCPUs

protected 
  numberOfCPUs
The number of Central Processing Units in the system.


Constructor Detail

Statistic

public Statistic( )
Constructs an empty Statistic object with default field values.

Method Detail

getName

public String getName()
Returns the name of this statistic. The name may be null if it is not specified.


setName

public void setName(String name)
Sets the name of this statistic.
Parameters:
    name - the name to set.


getUnit

public String getUnit()
Returns the unit of measurement for this statistic. This may be null if the unit is not specified.


setUnit

public void setUnit(String unit)
Sets the unit of measurement for this statistic.
Parameters:
    unit - the unit to set.


getDescription

public String getDescription()
Returns a human-readable description of this statistic. The description may be null if it is not set.


setDescription

public void setDescription(String description)
Sets a human-readable description of this statistic.
Parameters:
    description - the description to set.


getStartTime

public long getStartTime()
Returns the time the first measurement was taken represented as a long. This may be zero if the start time is not set.


getLastSampleTime

public long getLastSampleTime()
Returns the time the last measurement was taken represented as a long. This may be zero if the last sample time is not set.


setStartAndLastSampleTimes

public void setStartAndLastSampleTimes(long startTime,long lastSampleTime)
Sets the start time and last sample time.
Parameters:
    startTime - the time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
    lastSampleTime - the time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.


clone

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


getNodeSpeed

public float getNodeSpeed()
Returns the average system speed in MHz. This may be zero if the system speed is not set.


Returns:
     the system speed.


setNodeSpeed

public void setNodeSpeed(float nodeSpeed)
Sets the average system speed in MHz.
Parameters:
    nodeSpeed - the speed to set.


getNumberOfCPUs

public int getNumberOfCPUs()
Returns the number of Central Processing Units in the system.


Returns:
     the number of CPUs.


setNumberOfCPUs

public void setNumberOfCPUs(int numberOfCPUs)
Sets the number of Central Processing Units in the system.
Parameters:
    numberOfCPUs - the number of CPUs to set.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0