我正在尝试使用Java Application提取PMI数据,我已经能够访问performance模块,但不幸的是,我不能像下面的示例那样访问SubModule。
我使用以下代码提取了ThreadPool模块数据
StatDescriptor mysd = new StatDescriptor(new String[] { PmiConstants.THREADPOOL_MODULE });
MBeanStatDescriptor mymsd = new MBeanStatDescriptor(nodeAgent, mysd);
Object[] params = new Object[]{mymsd, new Boolean(false)};
String[] signature = new String[] { "com.ibm.websphere.pmi.stat.MBeanStatDescriptor", "java.lang.Boolean" };
com.ibm.ws.pmi.stat.StatsImpl myStats = (StatsImpl) adminClient.invoke(perfOn, "getStatsObject", params, signature);
//System.out.println("myStats Size = " + myStats.dataMembers().size()+ "\n" + myStats.toString());但我无法以AriesThreadPool身份访问线程池子模块及其计数器
有什么建议吗?

发布于 2017-07-19 17:29:50
我只需通过将参数从false替换为true来启用递归搜索即可解决问题
新参数= Object[] Object[]{mymsd,new Boolean(true)};
https://stackoverflow.com/questions/45050231
复制相似问题