Package com.vmware.bdd.plugin.ambari.api.model.stack

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


               hadoopStack
                     .setFullVersion(apiStackVersionInfo.getStackVersion());
               hadoopStack.setVendor(apiStackVersionInfo.getStackName());

               List<String> roles = new ArrayList<String>();
               ApiStackServiceList apiStackServiceList =
                     apiManager.getStackServiceListWithComponents(
                           hadoopStack.getVendor(),
                           hadoopStack.getFullVersion());
               for (ApiStackService apiStackService : apiStackServiceList
                     .getApiStackServices()) {
                  for (ApiStackComponent apiComponent : apiStackService
                        .getServiceComponents()) {
                     roles.add(apiComponent.getApiComponent()
                           .getComponentName());
View Full Code Here


   }

   @Override
   public String getSupportedConfigs(HadoopStack stack) {
      Map<String, Object> configs = new HashMap<String, Object>();
      ApiStackServiceList apiStackServiceList = apiManager.getStackServiceListWithConfigurations(stack.getVendor(), stack.getFullVersion());
      for (ApiStackService apiStackService : apiStackServiceList.getApiStackServices()) {
         for (ApiConfiguration apiConfiguration : apiStackService.getApiConfigurations()) {
            ApiConfigurationInfo apiConfigurationInfo = apiConfiguration.getApiConfigurationInfo();
            String configType = apiConfigurationInfo.getType().split(".xml")[0];
            String configProperty = apiConfigurationInfo.getPropertyName();
            Set<String> configProperties = new HashSet<String>();
View Full Code Here

   }

   private boolean provisionComponents(AmClusterDef clusterDef, List<String> addedNodeNames,
         ClusterReportQueue reports) throws Exception {
      logger.info("Installing roles " + addedNodeNames);
      ApiStackServiceList stackServiceList =
            apiManager.getStackWithCompAndConfigs(clusterDef.getAmStack()
                  .getName(), clusterDef.getAmStack().getVersion());
      Map<String, String> configTypeToService = stackServiceList.configTypeToService();
      Map<String, ApiComponentInfo> componentToInfo = stackServiceList.componentToInfo();
      ApiHostComponents apiHostComponents = null;
      Set<String> serviceNames = getExistingClusterServices(clusterDef);
      List<String> targetHostNames = new ArrayList<>();
      List<AmNodeDef> targetNodeDefs = new ArrayList<>();
      for (AmNodeDef nodeDef : clusterDef.getNodes()) {
View Full Code Here

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

      }
      String apiStackServicesWithComponentsJson =
            handleAmbariResponse(response);
      logger.trace("Response of service list with components of stack from ambari server:");
      logger.trace(apiStackServicesWithComponentsJson);
      ApiStackServiceList apiStackServices =
            ApiUtils.jsonToObject(ApiStackServiceList.class,
                  apiStackServicesWithComponentsJson);
      return apiStackServices;
   }
View Full Code Here

      List<NodeGroupInfo> nodeGroups = blueprint.getNodeGroups();
      if (nodeGroups == null || nodeGroups.isEmpty()) {
         return;
      }

      ApiStackServiceList servicesList =
            apiManager.getStackServiceListWithComponents(stackVendor,
                  stackVersion);

      List<ApiStackComponent> apiStackComponents =
            new ArrayList<ApiStackComponent>();
      for (ApiStackService apiStackService : servicesList.getApiStackServices()) {
         for (ApiStackComponent apiStackComponent : apiStackService
               .getServiceComponents()) {
            apiStackComponents.add(apiStackComponent);
         }
      }
View Full Code Here

         String stackVendor, String stackVersion) {
      if (config == null || config.isEmpty()) {
         return;
      }

      ApiStackServiceList servicesList =
            apiManager.getStackServiceListWithConfigurations(stackVendor,
                  stackVersion);
      Map<String, Object> supportedConfigs = new HashMap<String, Object>();
      for (ApiStackService apiStackService : servicesList.getApiStackServices()) {
         for (ApiConfiguration apiConfiguration : apiStackService
               .getApiConfigurations()) {
            ApiConfigurationInfo apiConfigurationInfo =
                  apiConfiguration.getApiConfigurationInfo();
            String configType = apiConfigurationInfo.getType();
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.ambari.api.model.stack.ApiStackServiceList

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.