public Collection<StackInfo> getStacks() {
    return stackMap.values();
  }
Obtain all stacks.

@return collection of all stacks
ambari-server/src/main/java/org/apache/ambari/server/stack/StackManager.java