/** * @see stream.statistics.StatisticsService#getStatistics(java.lang.String) */ @Override public Statistics getStatistics() { return new Statistics(statistics); }
/** * @see stream.AbstractProcessor#resetState() */ @Override public void resetState() throws Exception { this.statistics = new Statistics(); } }
/** * @see stream.AbstractProcessor#resetState() */ @Override public void resetState() throws Exception { this.statistics = new Statistics(); } }
/** * @see stream.AbstractProcessor#resetState() */ @Override public void resetState() throws Exception { this.statistics = new Statistics(); } }
/** * @see stream.statistics.StatisticsService#getStatistics(java.lang.String) */ @Override public Statistics getStatistics() { return new Statistics(statistics); }
/** * @see stream.statistics.StatisticsService#getStatistics(java.lang.String) */ @Override public Statistics getStatistics() { return new Statistics(statistics); }
@Override public Statistics getStatistics() { Statistics st = new Statistics(); synchronized (rate) { st.put("dataRate", new Double(rate.doubleValue())); } return st; }
@Override public Statistics getStatistics() { Statistics st = new Statistics(); synchronized (rate) { st.put("dataRate", new Double(rate.doubleValue())); } return st; }
@Override public Statistics getStatistics() { Statistics st = new Statistics(); st.put("dataRate", rate); return st; }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { synchronized (currentStatistics) { log.debug("Returning copy of statistics {}", currentStatistics); Long time = this.historyStats.mapTimestamp(System .currentTimeMillis()); Statistics st = historyStats.get(time); if (st != null) return new Statistics(historyStats.get(time)); return new Statistics(); } } }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { synchronized (currentStatistics) { log.debug("Returning copy of statistics {}", currentStatistics); Long time = this.historyStats.mapTimestamp(System .currentTimeMillis()); Statistics st = historyStats.get(time); if (st != null) return new Statistics(historyStats.get(time)); return new Statistics(); } } }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { Statistics stats = new Statistics(); stats.put(key, memoryUsed.doubleValue()); return stats; }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { Statistics stats = new Statistics(); stats.put(key, memoryUsed.doubleValue()); return stats; }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { Statistics stats = new Statistics(); stats.put(key, memoryUsed.doubleValue()); return stats; }
public Statistics divideBy(Double val) { Statistics st = new Statistics(); for (String k : keySet()) st.put(k, get(k) / val); return st; }
public Statistics divideBy(Double val) { Statistics st = new Statistics(); for (String k : keySet()) st.put(k, get(k) / val); return st; }
public Statistics divideBy(String key) { Statistics st = new Statistics(); st.putAll(this); Double x = get(key); if (x == null || x == 0.0d) return st; for (String k : keySet()) { if (!k.equals(key)) { Double val = get(k); st.put(k, val / x); } } return st; }
public Statistics divideBy(String key) { Statistics st = new Statistics(); st.putAll(this); Double x = get(key); if (x == null || x == 0.0d) return st; for (String k : keySet()) { if (!k.equals(key)) { Double val = get(k); st.put(k, val / x); } } return st; }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { Statistics stats = new Statistics(); Double time = nanoTime.doubleValue(); Double items = itemsProcessed.doubleValue(); /* * Double rate = 0.0; if (time > 0.0d) { rate = items / time / 1000L; } */ stats.setName("Average Throughput"); stats.put("@avg:milliseconds-per-item", time / items); return stats; } }
/** * @see stream.statistics.StatisticsService#getStatistics() */ @Override public Statistics getStatistics() { Statistics stats = new Statistics(); Double time = nanoTime.doubleValue(); Double items = itemsProcessed.doubleValue(); /* * Double rate = 0.0; if (time > 0.0d) { rate = items / time / 1000L; } */ stats.setName("Average Throughput"); stats.put("@avg:milliseconds-per-item", time / items); return stats; } }