public RootComponent[] getComponents() {
    return components;
  }
RootService is an enumeration of root-level services.
ambari-server/src/main/java/org/apache/ambari/server/controller/RootService.java