private static boolean isEncrypted(ConfigHelper config, Cluster cluster) {
      String policy = config.getValueFromDesiredConfigurations(cluster, ConfigHelper.HDFS_SITE, "dfs.http.policy");
      return (policy != null && policy.equalsIgnoreCase(ConfigHelper.HTTPS_ONLY));
    }
I represent a nameServiceId that belongs to HDFS. Multiple namenodes may belong to the same nameServiceId.
Each NameNode has either an http or https address.
ambari-server/src/main/java/org/apache/ambari/server/stack/NameService.java