@SuppressWarnings("unchecked")
protected StatsSimplifier(Class<T> type) {
super(type);
addExtractor("statistics", new AttributeExtractor<T>() {
public Object extract(Stats value) throws SkipAttributeException {
Map<String, Statistic> result = new HashMap<String, Statistic>();
for (String name : value.getStatisticNames()) {
result.put(name, value.getStatistic(name));
}
return result;
}
});
}
StatsSimplifier.java 文件源码
java
阅读 66
收藏 0
点赞 0
评论 0
项目:jolokia-extra
作者:
评论列表
文章目录