@Override
  public void onConnect(InternalDistributedSystem sys) {
    try {
      locatorStats.hookupStats(sys,
          LocalHostUtil.getCanonicalLocalHostName() + '-' + membershipLocator
              .getSocketAddress());
    } catch (UnknownHostException e) {
      logger.warn(e);
    }
  }
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