synchronized IHistogramData getHourlyConnectionTime() { DcacheTimeHourly entry = new DcacheTimeHourly(); entry.setCount(moverCount); entry.setDate(timestamp); entry.setMaximum(maxConnectionTime); if (minConnectionTime == Long.MAX_VALUE) { entry.setMinimum(0L); } else { entry.setMinimum(minConnectionTime); } entry.setAverage(avgConnectionTime); return entry; }
private void update(DcacheTimeHourly data) { moverCount += data.getCount(); maxConnectionTime = Math.max(maxConnectionTime, data.getMaximum()); minConnectionTime = Math.min(minConnectionTime, data.getMinimum()); avgConnectionTime += data.getAverage(); }