public boolean hasCompleted() {
      for (Future<?> f : futures) {
        if (! f.isDone()) {
          return false;
        }
      }
      return true;
    }
Determine whether all tasks have completed.

@return true if all tasks have completed; false otherwise
ambari-server/src/main/java/org/apache/ambari/server/stack/StackContext.java