public String getPortAsString() {
    Integer port = getPort();
    return (port != null ? port : getDefaultLocatorPort()).toString();
  }
Gets the port number represented as a String value. If the port number is null, the the default
Locator port (10334) is returned;

@return the port number as a String value.
@see #getPort()
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java