public Set<String> getServices() {
    return serviceComponents.keySet();
  }
Get services contained in the stack.

@return set of all services for the stack
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Stack.java