0
我想使用Java應用程序提取PMI數據,我已經能夠訪問性能模塊,但不幸的是,我無法訪問SubModule,如下例所示。訪問Tivoli性能模塊
我提取使用此代碼
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
任何推薦建議?