站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 management API Documentation 英文版文档

StatisticImpl (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档


org.jboss.management.j2ee.statistics
Class StatisticImpl

java.lang.Object
  extended byorg.jboss.management.j2ee.statistics.StatisticImpl
All Implemented Interfaces:
Serializable, javax.management.j2ee.statistics.Statistic
Direct Known Subclasses:
BoundaryStatisticImpl, BoundedRangeStatisticImpl, CountStatisticImpl, RangeStatisticImpl, TimeStatisticImpl

public abstract class StatisticImpl
extends Object
implements javax.management.j2ee.statistics.Statistic, Serializable

JBoss Implementation of the base Model for a Statistic Information

Version:
$Revision: 1.1.2.2 $
Author:
Marc Fleury, Scott.Stark@jboss.org
See Also:
Serialized Form

Field Summary
protected  String description
           
protected  long lastSampleTime
           
protected  String name
           
protected  long startTime
           
protected  String units
           
 
Constructor Summary
StatisticImpl(String name, String units, String description)
          Create a named Statistic.
 
Method Summary
 String getDescription()
           
 long getLastSampleTime()
           
 String getName()
           
 long getStartTime()
           
 String getUnit()
           
 void reset()
          Reset the lastSampleTime and startTime to the current time
 void set()
          Update the lastSampleTime and startTime on first call
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

units

protected String units

description

protected String description

startTime

protected long startTime

lastSampleTime

protected long lastSampleTime
Constructor Detail

StatisticImpl

public StatisticImpl(String name,
                     String units,
                     String description)
Create a named Statistic.

Parameters:
name - Name of the statistic
units - Unit description used in this statistic
description - Human description of the statistic
Method Detail

getName

public String getName()
Specified by:
getName in interface javax.management.j2ee.statistics.Statistic
Returns:
Name of the Statistic

getUnit

public String getUnit()
Specified by:
getUnit in interface javax.management.j2ee.statistics.Statistic
Returns:
Unit of Measurement. For TimeStatistics valid values are "HOUR", "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND", "NANOSECOND"

getDescription

public String getDescription()
Specified by:
getDescription in interface javax.management.j2ee.statistics.Statistic
Returns:
A human-readable description

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface javax.management.j2ee.statistics.Statistic
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.

getLastSampleTime

public long getLastSampleTime()
Specified by:
getLastSampleTime in interface javax.management.j2ee.statistics.Statistic
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.

reset

public void reset()
Reset the lastSampleTime and startTime to the current time


set

public void set()
Update the lastSampleTime and startTime on first call


toString

public String toString()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.