Package com.cloudera.api.model

Examples of com.cloudera.api.model.ApiServiceState


         syncHostsId(cluster);
         boolean allStarted = true;
         boolean allStopped = true;
         for (ApiService apiService : apiResourceRootV6.getClustersResource()
               .getServicesResource(cluster.getName()).readServices(DataView.SUMMARY)) {
            ApiServiceState serviceState = apiService.getServiceState();
            if (!ApiServiceState.STARTED.equals(serviceState)) {
               allStarted = false;
            } else {
               allStopped = false;
            }
View Full Code Here


   private boolean isExistingServiceStarted(String clusterName) {
      boolean started = true;
      for (ApiService apiService : apiResourceRootV6.getClustersResource()
            .getServicesResource(clusterName).readServices(DataView.SUMMARY)) {
         ApiServiceState serviceState = apiService.getServiceState();
         if (!ApiServiceState.STARTED.equals(serviceState)) {
            started = false;
            break;
         }
      }
View Full Code Here

         }

         for (ApiService apiService : apiResourceRootV6.getClustersResource()
               .getServicesResource(cluster.getName())
               .readServices(DataView.SUMMARY)) {
            ApiServiceState serviceState = apiService.getServiceState();
            if (serviceState == ApiServiceState.STARTED) {
               servicesNotStarted.remove(apiService.getName());
            }
         }
View Full Code Here

TOP

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

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.