public CalculatedStatus calculateStatus() {
    return !isFinished()
      ? CalculatedStatus.PENDING
      : isSuccessful()
        ? CalculatedStatus.COMPLETED
        : CalculatedStatus.ABORTED;
  }
Returns a map where the keys are the host group names and the values the
collection of FQDNs the hosts in the host group
@param hostGroups
@return
ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java