@Override
public ApiRequest stopAllServicesInCluster(String clusterName) throws AmbariApiException {
logger.info("Ambari is stopping all services in cluster " + clusterName);
ApiServiceInfo serviceInfo = new ApiServiceInfo();
serviceInfo.setState(ApiServiceStatus.INSTALLED.name());
ApiBody body = new ApiBody();
body.setServiceInfo(serviceInfo);
ApiRequestInfo requestInfo = new ApiRequestInfo();
requestInfo.setContext("Stop All Services");
ApiPutRequest stopRequest = new ApiPutRequest(requestInfo, body);
String request = ApiUtils.objectToJson(stopRequest);
logger.debug("The request in stop cluster is :" + request);