protected static HostRoleStatus calculateSummaryStatusOfUpgrade(
      Map<HostRoleStatus, Integer> counters, int total) {
    return calculateSummaryStatus(counters, total, false);
  }
Calculate overall status of an upgrade.

@param counters   counts of resources that are in various states
@param total      total number of resources in request

@return summary request status based on statuses of tasks in different states.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CalculatedStatus.java