Java EE 5 SDK

com.sun.appserv.management.j2ee.statistics
Class StatisticImpl

java.lang.Object
  extended by com.sun.appserv.management.j2ee.statistics.StatisticImpl
All Implemented Interfaces:
Serializable, Statistic
Direct Known Subclasses:
BoundaryStatisticImpl, CountStatisticImpl, NumberStatisticImpl, RangeStatisticImpl, StringStatisticImpl, TimeStatisticImpl

public class StatisticImpl
extends Object
implements Statistic, Serializable

Implementation of Statistic which records its values in member variables.

See Also:
Serialized Form

Field Summary
protected  long mLastSampleTime
           
 
Constructor Summary
StatisticImpl(Statistic s)
           
StatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime)
           
 
Method Summary
 boolean equals(Object rhs)
           
 String getDescription()
          Get the description for this Statistic
 long getLastSampleTime()
          Get the last sample time for this Statistic
 String getName()
          Get the name of this Statistic
 long getStartTime()
          Get the start time for this Statistic
 String getUnit()
          Get the units associated with this statistic.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mLastSampleTime

protected long mLastSampleTime
Constructor Detail

StatisticImpl

public StatisticImpl(String name,
                     String description,
                     String unit,
                     long startTime,
                     long lastSampleTime)

StatisticImpl

public StatisticImpl(Statistic s)
Method Detail

getDescription

public String getDescription()
Get the description for this Statistic

Specified by:
getDescription in interface Statistic

getLastSampleTime

public long getLastSampleTime()
Get the last sample time for this Statistic

Specified by:
getLastSampleTime in interface Statistic

getName

public String getName()
Get the name of this Statistic

Specified by:
getName in interface Statistic

getStartTime

public long getStartTime()
Get the start time for this Statistic

Specified by:
getStartTime in interface Statistic

getUnit

public String getUnit()
Get the units associated with this statistic.

Specified by:
getUnit in interface Statistic

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object rhs)
Overrides:
equals in class Object

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.