@Override
    public void init(TcpServer tcpServer) {
      if (locatorListener != null) {
        // This is deferred until now as the initial requested port could have been 0
        locatorListener.setPort(tcpServer.getPort());
      }
    }
A helper object so that the TcpServer can record its stats to the proper place. Stats are only
recorded if a distributed system is started.
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java