public int getTotal(final Serializable id) {
    int total = counters.get(id).get();
    for (VM vm : getAllVMs()) {
      total += vm.invoke(() -> counters.get(id).get());
    }
    return total;
  }
Returns the total value of the {@code AtomicInteger} combined across every VM.

@param id the id of the {@code AtomicInteger}
@return the total value of the {@code AtomicInteger}
geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/DistributedCounters.java