public WebSphereJMXObject( Object obj, WebSphereJMXObject webspherejmxobject, Object obj1, WebSphereJMXInterface webspherejmxinterface, HashSet hashset, HashMap hashmap, Object obj2) { this(obj, obj1, webspherejmxinterface, hashset, hashmap, obj2); parent = webspherejmxobject; webspherejmxobject.addSubObject(this); }
public WebSphereJMXObject( Object obj, Object obj1, WebSphereJMXInterface webspherejmxinterface, HashSet hashset, Object obj2, HashMap hashmap, String s) { super(obj, obj1, webspherejmxinterface); cell = null; node = null; process = null; id = null; filters = null; configs = null; perfOName = null; if (obj != null) { try { type = (String) webspherejmxinterface.getKeyPropertyMethod.invoke(obj, new Object[] {"type"}); name = (String) webspherejmxinterface.getKeyPropertyMethod.invoke(obj, new Object[] {"name"}); cell = (String) webspherejmxinterface.getKeyPropertyMethod.invoke(obj, new Object[] {"cell"}); node = (String) webspherejmxinterface.getKeyPropertyMethod.invoke(obj, new Object[] {"node"}); process = (String) webspherejmxinterface.getKeyPropertyMethod.invoke(obj, new Object[] {"process"}); if (type != null && cell != null && node != null && process != null) { addCounters(); } } catch (Exception exception) { System.err.println("WebSphereJMXObject exception: " + exception); } } filters = hashset; if (obj2 != null) { try { String s1 = (String) webspherejmxinterface.getStatsNameMethod.invoke(obj2, null); name = (String) webspherejmxinterface.getNLSValueMethod.invoke(null, new Object[] {s1}); id = s + "/" + WebSphereCounter.normalize(s1); type = name; Object aobj[] = (Object[]) webspherejmxinterface.getStatisticsMethod.invoke(obj2, null); if (aobj != null) { for (int i = 0; i < aobj.length; i++) { String s2 = (String) webspherejmxinterface.getStatisticNameMethod.invoke(aobj[i], null); if (filterCounter(type, s2)) { continue; } String s3 = (String) hashmap.get(s2); if (s3 == null) { s3 = s2; } // counters.add(new JMXObject.Counter(this, id + "/" + // WebSphereCounter.normalize(s2), s3)); counters.add( new JMXObject.Counter(this, id + "/" + WebSphereCounter.normalize(s2), s3)); } } Object aobj1[] = (Object[]) webspherejmxinterface.getSubStatsMethod.invoke(obj2, null); if (aobj1 != null) { for (int j = 0; j < aobj1.length; j++) { WebSphereJMXObject webspherejmxobject = new WebSphereJMXObject( null, obj1, webspherejmxinterface, hashset, aobj1[j], hashmap, id); addSubObject(webspherejmxobject); webspherejmxobject.setParent(this); } } } catch (Exception exception1) { System.err.println("WebSphereJMXObject constructor: " + exception1); } } }