Examples of ApiStackService


Examples of com.vmware.bdd.plugin.ambari.api.model.stack.ApiStackService

         throw AmbariApiException.CANNOT_CONNECT_AMBARI_SERVER(e);
      }
      String apiStackServiceJson = handleAmbariResponse(response);
      logger.debug("Response of service of stack from ambari server:");
      logger.debug(apiStackServiceJson);
      ApiStackService apiStackService =
            ApiUtils.jsonToObject(ApiStackService.class, apiStackServiceJson);
      return apiStackService;
   }
View Full Code Here

Examples of com.vmware.bdd.plugin.ambari.api.model.stack.ApiStackService

   // derect if input service names has non-client service
   private boolean hasNonClientServices(HadoopStack stack,
         List<String> notStartedServiceNames) {
      for (String serviceName : notStartedServiceNames) {
         ApiStackService stackService =
               getStackServiceWithComponents(stack.getVendor(),
                     stack.getFullVersion(), serviceName);
         List<ApiStackComponent> components = stackService.getServiceComponents();
         boolean allClients = true;
         if (components != null) {
            for (ApiStackComponent component : components) {
               if (!component.getApiComponent().isClient()) {
                  allClients = false;
View Full Code Here

Examples of com.vmware.bdd.plugin.ambari.api.model.stack.ApiStackService

         throw AmbariApiException.CANNOT_CONNECT_AMBARI_SERVER(e);
      }
      String apiStackServiceWithComponentsJson = handleAmbariResponse(response);
      logger.debug("Response of service with components of stack from ambari server:");
      logger.debug(apiStackServiceWithComponentsJson);
      ApiStackService apiStackService =
            ApiUtils.jsonToObject(ApiStackService.class,
                  apiStackServiceWithComponentsJson);
      return apiStackService;
   }
View Full Code Here

Examples of com.vmware.bdd.plugin.ambari.api.model.stack.ApiStackService

                  .getComponentCategory());
      if (componentCategory.isMaster()) {
         return NotExistDenpendencies;
      }

      ApiStackService apiTargetService =
            apiManager.getStackServiceWithComponents(
                  apiOriginComponentInfo.getStackName(),
                  apiOriginComponentInfo.getStackVersion(),
                  apiOriginComponentInfo.getServiceName());
      for (ApiStackComponent apiTargetComponent : apiTargetService
            .getServiceComponents()) {
         ApiComponentInfo apiTargetComponentInfo =
               apiTargetComponent.getApiComponent();
         ComponentCategory targetComponentCategory =
               ComponentCategory.valueOf(apiTargetComponentInfo
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.