protected Number getStatistic(String statName) {
    if (monitor != null) {
      return monitor.getStatistic(statName);
    } else {
      return 0;
    }


  }
While starting the cache server stats can be monitored.
geode-core/src/main/java/org/apache/geode/management/internal/beans/ServerBridge.java