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

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


      } catch (Exception e) {
         throw AmbariApiException.CANNOT_CONNECT_AMBARI_SERVER(e);
      }
      String serviceJson = handleAmbariResponse(response);
      logger.debug("Service " + serviceName + " is: " + serviceJson);
      ApiService apiService = ApiUtils.jsonToObject(ApiService.class, serviceJson);
      return apiService;
   }
View Full Code Here


      return apiService;
   }

   @Override
   public boolean isServiceStarted(String clusterName, String serviceName) throws AmbariApiException {
      ApiService service = readService(clusterName, serviceName);
      String serviceState = service.getServiceInfo().getState();
      return ApiServiceStatus.STARTED.name().equalsIgnoreCase(serviceState);
   }
View Full Code Here

TOP

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

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.