@RequiresSession
  public List<HostComponentStateEntity> findByHost(String hostName) {
    final TypedQuery<HostComponentStateEntity> query = entityManagerProvider.get().createNamedQuery("HostComponentStateEntity.findByHost", HostComponentStateEntity.class);
    query.setParameter("hostName", hostName);

    return daoUtils.selectList(query);
  }
Retrieve all of the Host Component States for the given host.

@param hostName HOst name
@return Return all of the Host Component States that match the criteria.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostComponentStateDAO.java