本文整理汇总了Java中com.sun.org.glassfish.external.statistics.Statistic类的典型用法代码示例。如果您正苦于以下问题:Java Statistic类的具体用法?Java Statistic怎么用?Java Statistic使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Statistic类属于com.sun.org.glassfish.external.statistics包,在下文中一共展示了Statistic类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkMethod
import com.sun.org.glassfish.external.statistics.Statistic; //导入依赖的package包/类
protected void checkMethod(Method method) {
if (method == null || method.getDeclaringClass() == null
|| !Statistic.class.isAssignableFrom(method.getDeclaringClass())
|| Modifier.isStatic(method.getModifiers())) {
throw new RuntimeException("Invalid method on invoke");
}
}
示例2: getStatistic
import com.sun.org.glassfish.external.statistics.Statistic; //导入依赖的package包/类
public synchronized Statistic getStatistic(String statisticName) {
Statistic stat = null;
for (Statistic s : statArray) {
if (s.getName().equals(statisticName)) {
stat = s;
break;
}
}
return stat;
}
示例3: getStatisticNames
import com.sun.org.glassfish.external.statistics.Statistic; //导入依赖的package包/类
public synchronized String[] getStatisticNames() {
ArrayList list = new ArrayList();
for (Statistic s : statArray) {
list.add(s.getName());
}
String[] strArray = new String[list.size()];
return (String[])list.toArray(strArray);
}
示例4: getStatistics
import com.sun.org.glassfish.external.statistics.Statistic; //导入依赖的package包/类
public synchronized Statistic[] getStatistics() {
return this.statArray;
}