private List getThisRowData(List rowData) { rowData.add(new Double(getHits())); rowData.add(new Double(getAvg())); rowData.add(new Double(getTotal())); rowData.add(new Double(getStdDev())); rowData.add(new Double(getLastValue())); rowData.add(new Double(getMin())); rowData.add(new Double(getMax())); rowData.add(new Double(getActive())); rowData.add(new Double(getAvgActive())); rowData.add(new Double(getMaxActive())); rowData.add(getFirstAccess()); rowData.add(getLastAccess()); rowData.add(new Boolean(isEnabled())); rowData.add(new Boolean(isPrimary())); rowData.add(new Boolean(hasListeners())); return rowData; }
private List getThisRowData(List rowData) { rowData.add(new Double(getHits())); rowData.add(new Double(getAvg())); rowData.add(new Double(getTotal())); rowData.add(new Double(getStdDev())); rowData.add(new Double(getLastValue())); rowData.add(new Double(getMin())); rowData.add(new Double(getMax())); rowData.add(new Double(getActive())); rowData.add(new Double(getAvgActive())); rowData.add(new Double(getMaxActive())); rowData.add(getFirstAccess()); rowData.add(getLastAccess()); rowData.add(bool(isEnabled())); rowData.add(bool(isPrimary())); rowData.add(bool(hasListeners())); return rowData; }
private MonitorImp getNanoMonitor(MonKey key) { boolean isPrimary=false; boolean isTimeMon=true; MonitorImp mon=getMonitor.getMon(key, isPrimary, isTimeMon); if (mon.isEnabled()) { mon = new TimeMonNano(key, mon.getMonInternals()); } return mon; }
/***This was changed 11/24/06 to fix syncronization problems reported as bug */ private MonitorImp getMonitor(MonKey key, boolean isPrimary, boolean isTimeMonitor) { MonitorImp mon=getMonitor.getMon(key, isPrimary, isTimeMonitor); if (mon.isEnabled()) { mon = (isTimeMonitor) ? new TimeMon(key, mon.getMonInternals()) : new DecoMon(key, mon.getMonInternals()); } return mon; }
/***This was changed 11/24/06 to fix syncronization problems reported as bug */ private synchronized MonitorImp getMonitor(MonKey key, boolean isPrimary, boolean isTimeMonitor) { // note using MonKey over String concatenation doubled the speed // of the code, and was only slightly slower than using just the label // as the key MonitorImp mon=getExistingMonitor(key); // chance of 2 threads going into the next code simultaneously if (mon==null) { mon=createMon(key, isPrimary, isTimeMonitor); putMon(key, mon); } if (mon.isEnabled()) { mon = (isTimeMonitor) ? new TimeMon(key, mon.getMonInternals()) : new DecoMon(key, mon.getMonInternals()); } return mon; }