private int getCurrentIntCounter() { int currentCounter = 0; for (String statKey : statsKeys) { currentCounter += monitor.getStatistic(statKey).intValue(); } return currentCounter; }
private long getCurrentLongCounter() { long currentCounter = 0; for (String statKey : statsKeys) { currentCounter += monitor.getStatistic(statKey).longValue(); } return currentCounter; }