@Override
  public Statistic[] getStatistics() {
    if (!timerInited) {
      // 1st call to getStatistics would trigger
      // the auto-refresh if an interval is set
      if (refreshInterval > 0) {
        _setRefreshInterval(refreshInterval);
      }
    }

    if (statistics == null) {
      try {
        refresh();
      } catch (AdminException e) {
        statistics = new Statistic[0];
      }
    }

    return statistics;
  }
Add MBean attribute definitions for each Statistic.

@param managed the mbean definition to add attributes to
@return a new instance of ManagedBean copied from <code>managed</code> but with the new
        attributes added
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/StatisticResourceJmxImpl.java