@Override
  public String getPort(String clusterName, String componentName, String hostName, boolean httpsEnabled) {
    return overridenJmxUri(componentName)
      .map(uri -> String.valueOf(resolve(uri, clusterName).getPort()))
      .orElseGet(() -> defaultProvider.getPort(clusterName, componentName, hostName, httpsEnabled));
  }
A special {@link JMXHostProvider} that resolves JMX URIs based on cluster configuration.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigBasedJmxHostProvider.java