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

Examples of com.vmware.bdd.plugin.ambari.api.model.cluster.ApiTask


   @Override
   public ApiRequest getRequestWithTasks(String clusterName, Long requestId) throws AmbariApiException {
      ApiRequest apiRequest = new ApiRequest();
      List<ApiTask> apiTasks = new ArrayList<>();
      ApiTask apiTask = new ApiTask();
      ApiTaskInfo taskInfo = new ApiTaskInfo();
      taskInfo.setStatus("FAILED");
      taskInfo.setHostName("host01");
      apiTask.setApiTaskInfo(taskInfo);
      apiTasks.add(apiTask);
      apiRequest.setApiTasks(apiTasks);
      ApiRequestInfo apiRequestInfo = new ApiRequestInfo();
      apiRequestInfo.setRequestStatus("FAILED");
      apiRequest.setApiRequestInfo(apiRequestInfo);
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.ambari.api.model.cluster.ApiTask

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.