public static HostRoleStatus getOverallDisplayStatusForRequest (Collection<HostRoleStatus> hostRoleStatuses) {
    Map<HostRoleStatus, Integer> statusCount = calculateStatusCounts(hostRoleStatuses);
    return calculateSummaryDisplayStatus(statusCount, hostRoleStatuses.size(), false);
  }
Calculate overall display status from collection of statuses
@param hostRoleStatuses list of all stage's {@link HostRoleStatus}
@return overall display status of a request
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CalculatedStatus.java