@Override
    public void incrementAttemptCounter() {
      InternalCache cache = getCache();
      try {
        cache.getInternalResourceManager().getStats().incAutoRebalanceAttempts();
      } catch (Exception e) {
        logger.warn("Failed to increment AutoBalanceAttempts counter");
      }
    }
Hides cache level details and exposes simple methods relevant for auto-balancing
geode-rebalancer/src/main/java/org/apache/geode/cache/util/AutoBalancer.java