public synchronized void inc(int incr) { for (TimeStat ts : timeStats.values()) { ts.inc(incr); } }
public synchronized void inc(int incr) { for (TimeStat ts : timeStats.values()) { ts.inc(incr); } }
public synchronized void inc(int incr) { for (TimeStat ts : timeStats.values()) { ts.inc(incr); } }
stat.inc(3); collector.update(); assertEquals(0, stat.getValues().get(window).getValue()); assertEquals(3, stat.getValues().get(sincStart).getValue()); stat.inc(3); collector.update(); assertEquals((3+3), stat.getValues().get(window).getValue()); assertEquals(6, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update(); assertEquals((3+3), stat.getValues().get(window).getValue()); assertEquals(16, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update(); assertEquals((3+3+10+10), stat.getValues().get(window).getValue()); assertEquals(26, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update(); stat.inc(10); collector.update(); assertEquals((3+3+10+10+10+10), stat.getValues().get(window).getValue()); assertEquals(46, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update();
stat.inc(3); collector.update(); assertEquals(0, stat.getValues().get(window).getValue()); assertEquals(3, stat.getValues().get(sincStart).getValue()); stat.inc(3); collector.update(); assertEquals((3+3), stat.getValues().get(window).getValue()); assertEquals(6, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update(); assertEquals((3+3), stat.getValues().get(window).getValue()); assertEquals(16, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update(); assertEquals((3+3+10+10), stat.getValues().get(window).getValue()); assertEquals(26, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update(); stat.inc(10); collector.update(); assertEquals((3+3+10+10+10+10), stat.getValues().get(window).getValue()); assertEquals(46, stat.getValues().get(sincStart).getValue()); stat.inc(10); collector.update();
synchronized void incrHealthCheckFailed() { healthCheckFailedStat.inc(); }
public synchronized void inc() { inc(1); }
synchronized void incrSucceededTasks() { succeededTasksStat.inc(); }
synchronized void incrTotalTasks() { totalTasksStat.inc(); }
synchronized void incrTotalTasks() { totalTasksStat.inc(); }
public synchronized void inc() { inc(1); }
synchronized void incrSucceededTasks() { succeededTasksStat.inc(); }
public synchronized void inc() { inc(1); }
public synchronized void inc() { inc(1); }
public synchronized void inc() { inc(1); }
public synchronized void inc() { inc(1); }
public synchronized void inc(int incr) { for (TimeStat ts : timeStats.values()) { ts.inc(incr); } }
public synchronized void inc(int incr) { for (TimeStat ts : timeStats.values()) { ts.inc(incr); } }
public synchronized void inc(int incr) { for (TimeStat ts : timeStats.values()) { ts.inc(incr); } }