@Override
  public Collection<Host> getHosts() {
    return clusters.getHostsForCluster(clusterName).values();
  }
@param serviceName name of the service
@param componentName name of the component
@return the set of hosts for the provided service and component
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java