@Override
  public StatisticsConfig getStatisticsConfig() {
    return distributionConfig;
  }
Return the port on which the locator is actually listening. If called before the locator has
actually started, this method will return null.

@return the port the locator is listening on or null if it has not yet been started
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java