private OpenType<?> getJmxType(Class<?> type) {
if (type == Boolean.class) {
return SimpleType.BOOLEAN;
} else if (type == Integer.class || type == AtomicInteger.class) {
return SimpleType.INTEGER;
} else if (type == Long.class || type == AtomicLong.class) {
return SimpleType.LONG;
} else if (type == Double.class) {
return SimpleType.DOUBLE;
} else if (type == String.class) {
return SimpleType.STRING;
} else {
throw new UnsupportedOperationException(
"Don't know how to process Monitorable of type [" + type + "]");
}
}
JmxView.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:parfait
作者:
评论列表
文章目录