TimeStatistic (Java EE 5)

Java EE API


javax.management.j2ee.statistics Interface TimeStatistic

All Superinterfaces:
Statistic

public interface TimeStatistic
extends Statistic

Implements: Statistic

指定标准计时测量。
英文文档:

Specifies standard timing measurements.


Method Summary
 long
 long
 long
 long
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
 

Method Detail

public long getCount()
自此测量开始以来,调用此操作的时间。
英文文档:

getCount

long getCount()
Number of times the operation was invoked since the beginning of this measurement.


public long getMaxTime()
自此测量开始以来,完成此操作的一次调用所花费的最大时间量。
英文文档:

getMaxTime

long getMaxTime()
The maximum amount of time taken to complete one invocation of this operation since the beginning of this measurement.


public long getMinTime()
自此测量开始以来,完成此操作的一次调用所花费的最小时间量。
英文文档:

getMinTime

long getMinTime()
The minimum amount of time taken to complete one invocation of this operation since the beginning of this measurement.


public long getTotalTime()
自此测量开始以来,每次完成调用此操作所费时间的总和。用 totalTime 除以该数将得到此操作的平均执行时间。
英文文档:

getTotalTime

long getTotalTime()
This is the sum total of time taken to complete every invocation of this operation since the beginning of this measurement. Dividing totalTime by count will give you the average execution time for this operation.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!