コード例 #1
0
 synchronized IHistogramData getHourlyReads() {
   DcacheReadsHourly entry = new DcacheReadsHourly();
   entry.setCount(readCount);
   entry.setDate(timestamp);
   entry.setTransferred(bytesRead);
   return entry;
 }
コード例 #2
0
 private void update(DcacheReadsHourly data) {
   readCount += data.getCount();
   bytesRead += data.getTransferred();
 }