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;
}