protected static Set<Role> getRolesOfTimedOutTasks(List <HostRoleCommand> hostRoleCommands) {
    return getRolesOfTasks(hostRoleCommands, HostRoleStatus.TIMEDOUT);
  }
Get all {@link Role} any of whose tasks is in {@link HostRoleStatus#TIMEDOUT}
@param hostRoleCommands list of {@link HostRoleCommand}
@return Set of {@link Role}
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CalculatedStatus.java