private String getDefaultRMPort(String yarnHttpPolicy) {
    return (HTTPS_ONLY.equals(yarnHttpPolicy)) ? YARN_RESOURCEMANAGER_DEFAULT_HTTPS_PORT : YARN_RESOURCEMANAGER_DEFAULT_HTTP_PORT;
  }
@param yarnHttpPolicy - The HTTP Policy configured in YARN site file
@return The default resource manager port depending on the http policy
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/ambari/Services.java