@Override
  public Statistics createAtomicStatistics(StatisticsType type, String textId, long numericId) {
    if (statsDisabled) {
      return new DummyStatisticsImpl(type, textId, numericId);
    }
    return super.createAtomicStatistics(type, textId, numericId);
  }
A standalone implementation of {@link StatisticsFactory}. It can be used in contexts that do not
have the GemFire product or in vm's that do not have a distributed system nor a gemfire
connection.
geode-core/src/main/java/org/apache/geode/internal/statistics/LocalStatisticsFactory.java