|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.externalnode.Statistic
public class Statistic
The base class for all other statistic classes.
All fields are optional fields. Subclasses may dictate certain fields as mandatory.
Field Summary | |
---|---|
protected java.lang.String |
description
Description of this statistic. |
protected long |
lastSampleTime
Time the last measurement was taken. |
protected java.lang.String |
name
Name of this statistic. |
protected float |
nodeSpeed
The average system speed in MHz. |
protected int |
numberOfCPUs
The number of Central Processing Units in the system. |
protected long |
startTime
Time the first measurement was taken. |
protected java.lang.String |
unit
The unit of measurement for this statistic. |
Constructor Summary | |
---|---|
Statistic()
Constructs an empty Statistic object with default field values. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getDescription()
Returns a human-readable description of this statistic. |
long |
getLastSampleTime()
Returns the time the last measurement was taken represented as a long. |
java.lang.String |
getName()
Returns the name of this statistic. |
float |
getNodeSpeed()
Returns the average system speed in MHz. |
int |
getNumberOfCPUs()
Returns the number of Central Processing Units in the system. |
long |
getStartTime()
Returns the time the first measurement was taken represented as a long. |
java.lang.String |
getUnit()
Returns the unit of measurement for this statistic. |
void |
setDescription(java.lang.String description)
Sets a human-readable description of this statistic. |
void |
setName(java.lang.String name)
Sets the name of this statistic. |
void |
setNodeSpeed(float nodeSpeed)
Sets the average system speed in MHz. |
void |
setNumberOfCPUs(int numberOfCPUs)
Sets the number of Central Processing Units in the system. |
void |
setStartAndLastSampleTimes(long startTime,
long lastSampleTime)
Sets the start time and last sample time. |
void |
setUnit(java.lang.String unit)
Sets the unit of measurement for this statistic. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String description
protected java.lang.String unit
protected long startTime
protected long lastSampleTime
protected float nodeSpeed
protected int numberOfCPUs
Constructor Detail |
---|
public Statistic()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to set.public java.lang.String getUnit()
public void setUnit(java.lang.String unit)
unit
- the unit to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to set.public long getStartTime()
public long getLastSampleTime()
public void setStartAndLastSampleTimes(long startTime, long lastSampleTime)
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.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public float getNodeSpeed()
public void setNodeSpeed(float nodeSpeed)
nodeSpeed
- the speed to set.public int getNumberOfCPUs()
public void setNumberOfCPUs(int numberOfCPUs)
numberOfCPUs
- the number of CPUs to set.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |