2017-07-12 79 views
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

任何推薦建議?

enter image description here

回答

0

我解決 只是我從虛假替換參數設置爲true

對象啓用的遞歸搜索 問題[] PARAMS =新的對象[] {m​​ymsd,新布爾(真) };