Stats (Java EE 5)

Java EE API


javax.management.j2ee.statistics Interface Stats

All Known Subinterfaces:
EJBStats, EntityBeanStats, JCAConnectionPoolStats, JCAConnectionStats, JCAStats, JDBCConnectionPoolStats, JDBCConnectionStats, JDBCStats, JMSConnectionStats, JMSConsumerStats, JMSEndpointStats, JMSProducerStats, JMSSessionStats, JMSStats, JTAStats, JVMStats, MessageDrivenBeanStats, ServletStats, SessionBeanStats, StatefulSessionBeanStats, StatelessSessionBeanStats, URLStats

public interface Stats


Stats 模型及其子模型指定每个特定管理对象类型的性能数据属性。
英文文档:

The Stats model and its submodels specify performance data attributes for each of the specific managed object types.


Method Summary
 Statistic
 String[]
 Statistic[]
 

Method Detail

public Statistic getStatistic(String statisticName)
通过名称获取 Statistic。
英文文档:

getStatistic

Statistic getStatistic(String statisticName)
Get a Statistic by name.


public String[] getStatisticNames()
返回一个 String 数组,它是此对象支持的特定 Stats 子模型的属性名称。列表中指定的属性必须对应于将返回相应类型的 Statistic 对象的属性,这些对象包含有效的性能数据。对于不包含在 statisticNames 列表中的 Stats 子模型,返回的属性值必须为 null。对于 statisticNames 列表中的每个名称,统计信息列表中必须有一个相同名称的 Statistic。
英文文档:

getStatisticNames

String[] getStatisticNames()
Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports. Attributes named in the list must correspond to attributes that will return a Statistic object of the appropriate type which contains valid performance data. The return value of attributes in the Stats submodel that are not included in the statisticNames list must be null. For each name in the statisticNames list there must be one Statistic with the same name in the statistics list.


public Statistic[] getStatistics()
返回一个包含此 Stats 对象支持的所有 Statistic 对象的数组。
英文文档:

getStatistics

Statistic[] getStatistics()
Returns an array containing all of the Statistic objects supported by this Stats object.



Submit a bug or feature

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

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

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