@Override
  public Set<String> getHostNames(String clusterName, String componentName) {
    return overridenJmxUri(componentName)
      .map(uri -> singleton(resolve(uri, clusterName).getHost()))
      .orElseGet(() -> defaultProvider.getHostNames(clusterName, componentName));
  }
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