return serviceList;
}
@Override
public Map<String, ServiceStatus> getHostStatus(String clusterName) throws AmbariApiException {
ApiHostList hostList = getHostsWithRoleState(clusterName);
Map<String, ServiceStatus> result = new HashMap<String, ServiceStatus>();
List<ApiHost> apiHosts = hostList.getApiHosts();
if (apiHosts != null) {
for (ApiHost apiHost : apiHosts) {
String state = apiHost.getApiHostInfo().getState();
if (ApiHostStatus.HEALTHY.name().equalsIgnoreCase(state)) {
result.put(apiHost.getApiHostInfo().getHostName(),