📄 statistic.java
字号:
/**
* $RCSfile $
* $Revision $
* $Date $
*
* Copyright (C) 1999-2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.wildfire.stats;
/**
* A statistic being tracked by the server
*/
public interface Statistic {
/**
* Returns the name of a stat.
*
* @return Returns the name of a stat.
*/
public String getName();
/**
* Returns the type of a stat.
*
* @return Returns the type of a stat.
*/
public Type getStatType();
/**
* Returns a description of the stat.
*
* @return Returns a description of the stat.
*/
public String getDescription();
/**
* Returns the units that relate to the stat.
*
* @return Returns the units that relate to the stat.
*/
public String getUnits();
/**
* @return Returns the sample of data.
*/
public double sample();
public enum Type {
/**
* Specifies a rate over time.
* For example, the averave of kb/s in file transfers.
*/
rate,
/**
* Specifies a count at a specific time period. An example would be the
* number of users in MultiUserChat at this second.
*/
count
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -