private MBeanInfo buildProcessorMBeanInfo() {
ArrayList<MBeanAttributeInfo> info = new ArrayList<>();
info.add(new MBeanAttributeInfo(
Constants.PlatformMetricType.PROCESSOR_CPU_USAGE.getMetricTypeId().getIDString(),
Double.class.getCanonicalName(),
"CPU usage",
true,
false,
false));
return new MBeanInfo(
PlatformMBean.class.getCanonicalName(),
"Processor information",
info.toArray(new MBeanAttributeInfo[0]),
new MBeanConstructorInfo[0],
new MBeanOperationInfo[0],
new MBeanNotificationInfo[0]);
}
PlatformMBeanGenerator.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:hawkular-agent
作者:
评论列表
文章目录