use of com.sequenceiq.ambari.client.services.ServiceAndHostService in project cloudbreak by hortonworks.
the class ScalingUtil method getNodeCountAmbari.
public static int getNodeCountAmbari(StackEndpoint stackV1Endpoint, String port, String stackId, String ambariUser, String ambariPassword, IntegrationTestContext itContext) {
String ambariIp = CloudbreakUtil.getAmbariIp(stackV1Endpoint, stackId, itContext);
ServiceAndHostService ambariClient = new AmbariClient(ambariIp, port, ambariUser, ambariPassword);
return ambariClient.getClusterHosts().size();
}
Aggregations