private Optional<String> getOverriddenHost(String componentName) {
    return Optional.ofNullable(overriddenHosts.get(componentName));
  }
I'm a special {@link MetricHostProvider} that can override default component host names.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/OverriddenMetricsHostProvider.java