public Integer getPort() {
    if (locator != null) {
      return locator.getPort();
    }

    return port;
  }
Gets the port number on which the Locator listens for client requests.

@return an Integer value indicating the port number on which the Locator is listening for
        client requests.
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java