public int getPort() {
    return getInt(CONFIG_SAMZA_REST_SERVICE_PORT);
  }
@see SamzaRestConfig#CONFIG_SAMZA_REST_SERVICE_PORT
@return  the port number to use for the HTTP server or 0 to dynamically choose a port.
samza-rest/src/main/java/org/apache/samza/rest/SamzaRestConfig.java