public Collection<String> getComponents(String service) {
    return serviceComponents.get(service);
  }
Get components contained in the stack for the specified service.

@param service  service name

@return collection of component names for the specified service
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Stack.java