Search in sources :

Example 1 with ServiceAndHostService

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();
}
Also used : ServiceAndHostService(com.sequenceiq.ambari.client.services.ServiceAndHostService) AmbariClient(com.sequenceiq.ambari.client.AmbariClient)

Aggregations

AmbariClient (com.sequenceiq.ambari.client.AmbariClient)1 ServiceAndHostService (com.sequenceiq.ambari.client.services.ServiceAndHostService)1