javax.management.j2ee.statistics
Interface Statistic

All Known Subinterfaces:
BoundaryStatistic, BoundedRangeStatistic, CountStatistic, RangeStatistic, TimeStatistic

public interface Statistic

The Statistic interface and its subinterfaces specify the required accessors which provide the performance data described by the specific attributes in the Stats interfaces. The Statistic subinterfaces specify accessors which provide statistical data about count, time, and both bounded and unbounded ranges.

Statistics Class
 Diagram

Version:
$Revision: 1.1 $
Author:
Laurent Etiemble

Method Summary
 java.lang.String getDescription()
          Returns a human-readable description of the Statistic.
 long getLastSampleTime()
          Returns the time the most recent measurment was taken represented as a long, whose value is the number of milliseconds since "January 1, 1970, 00:00:00".
 java.lang.String getName()
          Returns the name of this Statistic.
 long getStartTime()
          Returns the time the first measurment was taken represented as a long, whose value is the number of milliseconds since "January 1, 1970, 00:00:00".
 java.lang.String getUnit()
          Returns the unit of measurement for this Statistic.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this Statistic. The name must always correspond to the name of the Stats accessor that is providing the data for this statistic.

Returns:
The name value

getUnit

public java.lang.String getUnit()
Returns the unit of measurement for this Statistic. Valid values for TimeStatistic measurements are "HOUR", "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND" and "NANOSECOND".

Returns:
The unit

getDescription

public java.lang.String getDescription()
Returns a human-readable description of the Statistic.

Returns:
The description

getStartTime

public long getStartTime()
Returns the time the first measurment was taken represented as a long, whose value is the number of milliseconds since "January 1, 1970, 00:00:00".

Returns:
The start time value

getLastSampleTime

public long getLastSampleTime()
Returns the time the most recent measurment was taken represented as a long, whose value is the number of milliseconds since "January 1, 1970, 00:00:00".

Returns:
The last sample time value


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.