Package org.apache.ambari.server.controller.RootServiceResponseFactory

Examples of org.apache.ambari.server.controller.RootServiceResponseFactory.Components


        rootServiceComponents.size());

    String ambariVersion = ambariMetaInfo.getServerVersion();

    for (int i = 0; i < RootServiceResponseFactory.Services.AMBARI.getComponents().length; i++) {
      Components component = RootServiceResponseFactory.Services.AMBARI.getComponents()[i];

      if (component.name().equals(ambariServerComponent.name())) {
        for (RootServiceComponentResponse response : rootServiceComponents) {
          if (response.getComponentName().equals(ambariServerComponent.name())) {
            assertEquals(ambariVersion, response.getComponentVersion());
            assertEquals(1, response.getProperties().size(), 1);
            assertTrue(response.getProperties().containsKey("jdk_location"));
          }
        }
      } else {
        assertTrue(rootServiceComponents.contains(new RootServiceComponentResponse(
            component.name(), RootServiceResponseFactory.NOT_APPLICABLE,
            Collections.<String, String> emptyMap())));
      }
    }

    // Request existent service name, existent component name
View Full Code Here


        RootServiceResponseFactory.Services.AMBARI.getComponents().length,
        rootServiceComponents.size());

    for (int i = 0; i < RootServiceResponseFactory.Services.AMBARI
        .getComponents().length; i++) {
      Components component =
          RootServiceResponseFactory.Services.AMBARI.getComponents()[i];

      if (component.name().equals(
          RootServiceResponseFactory.Components.AMBARI_SERVER.name()))
        assertTrue(rootServiceComponents
            .contains(new RootServiceComponentResponse(component.name(),
                ambariMetaInfo.getServerVersion(),
                configs.getAmbariProperties())));
      else
        assertTrue(rootServiceComponents
            .contains(new RootServiceComponentResponse(component.name(),
                RootServiceResponseFactory.NOT_APPLICABLE,
                Collections.<String, String> emptyMap())));
    }

    // Request existent service name, existent component name
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.RootServiceResponseFactory.Components

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.