Package com.cloudera.api.model

Examples of com.cloudera.api.model.ApiHostRefList


   }

   @Override
   public ApiHostRefList listHosts(String s) {
      rootResource.getHostsResource().readHosts(DataView.SUMMARY);
      return new ApiHostRefList();
   }
View Full Code Here


         }
         if (!isProvisioned(clusterName)) {
            return true;
         }

         ApiHostRefList hosts = apiResourceRootV6.getClustersResource().listHosts(clusterName);

         apiResourceRootV6.getClustersResource().deleteCluster(clusterName);

         for (ApiHostRef host : hosts.getHosts()) {
            apiResourceRootV6.getHostsResource().deleteHost(host.getHostId());
         }

      } catch (Exception e) {
         throw SoftwareManagementPluginException.DELETE_CLUSTER_FAILED(e, Constants.CDH_PLUGIN_NAME, clusterName);
View Full Code Here

      if (!toAddHosts.isEmpty()) {
         logger.info("apiHosts to add: " + toAddHosts.toString());

         // Add hosts to this cluster
         apiResourceRootV6.getClustersResource().addHosts(cluster.getName(), new ApiHostRefList(new ArrayList<ApiHostRef>(toAddHosts)));
      }
   }
View Full Code Here

TOP

Related Classes of com.cloudera.api.model.ApiHostRefList

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.