org.apache.geronimo.management.stats
Class StatisticImpl

java.lang.Object
  extended by org.apache.geronimo.management.stats.StatisticImpl
All Implemented Interfaces:
Serializable, Statistic
Direct Known Subclasses:
BoundaryStatisticImpl, CountStatisticImpl, RangeStatisticImpl, TimeStatisticImpl

public class StatisticImpl
extends Object
implements Statistic, Serializable

Implementation of the JSR-77 Statistic interface (JSR77.6.4)

See Also:
Serialized Form

Field Summary
static String UNIT_COUNT
           
static String UNIT_MEMORY_BYTES
           
static String UNIT_MEMORY_GIGABYTES
           
static String UNIT_MEMORY_KILOBYTES
           
static String UNIT_MEMORY_MEGABYTES
           
static String UNIT_TIME_HOUR
           
static String UNIT_TIME_MICROSECOND
           
static String UNIT_TIME_MILLISECOND
           
static String UNIT_TIME_MINUTE
           
static String UNIT_TIME_NANOSECOND
           
static String UNIT_TIME_SECOND
           
 
Constructor Summary
StatisticImpl(String name, String unit, String description)
           
 
Method Summary
 String getDescription()
           
 long getLastSampleTime()
           
 String getName()
           
 long getStartTime()
           
 String getUnit()
           
 void setLastSampleTime()
           
 void setLastSampleTime(long lastSampleTime)
           
 void setStartTime()
           
 void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIT_TIME_HOUR

public static final String UNIT_TIME_HOUR
See Also:
Constant Field Values

UNIT_TIME_MINUTE

public static final String UNIT_TIME_MINUTE
See Also:
Constant Field Values

UNIT_TIME_SECOND

public static final String UNIT_TIME_SECOND
See Also:
Constant Field Values

UNIT_TIME_MILLISECOND

public static final String UNIT_TIME_MILLISECOND
See Also:
Constant Field Values

UNIT_TIME_MICROSECOND

public static final String UNIT_TIME_MICROSECOND
See Also:
Constant Field Values

UNIT_TIME_NANOSECOND

public static final String UNIT_TIME_NANOSECOND
See Also:
Constant Field Values

UNIT_MEMORY_BYTES

public static final String UNIT_MEMORY_BYTES
See Also:
Constant Field Values

UNIT_MEMORY_KILOBYTES

public static final String UNIT_MEMORY_KILOBYTES
See Also:
Constant Field Values

UNIT_MEMORY_MEGABYTES

public static final String UNIT_MEMORY_MEGABYTES
See Also:
Constant Field Values

UNIT_MEMORY_GIGABYTES

public static final String UNIT_MEMORY_GIGABYTES
See Also:
Constant Field Values

UNIT_COUNT

public static final String UNIT_COUNT
See Also:
Constant Field Values
Constructor Detail

StatisticImpl

public StatisticImpl(String name,
                     String unit,
                     String description)
Method Detail

getName

public String getName()
Specified by:
getName in interface Statistic

getUnit

public String getUnit()
Specified by:
getUnit in interface Statistic

getDescription

public String getDescription()
Specified by:
getDescription in interface Statistic

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface Statistic

setStartTime

public void setStartTime()

setStartTime

public void setStartTime(long startTime)

getLastSampleTime

public long getLastSampleTime()
Specified by:
getLastSampleTime in interface Statistic

setLastSampleTime

public void setLastSampleTime(long lastSampleTime)

setLastSampleTime

public void setLastSampleTime()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.