AmbariClusterConnector.POLLING_INTERVAL,
AmbariClusterConnector.MAX_ATTEMPTS_FOR_HOSTS);
}
private boolean waitForHostsToJoin(Stack stack) {
AmbariHostsJoinStatusCheckerTask ambariHostsJoinStatusCheckerTask = new AmbariHostsJoinStatusCheckerTask();
AmbariHosts ambariHosts =
new AmbariHosts(stack, new AmbariClient(stack.getAmbariIp()), stack.getNodeCount() * stack.getMultiplier());
ambariHostJoin.pollWithTimeout(
ambariHostsJoinStatusCheckerTask,
ambariHosts,
AmbariClusterConnector.POLLING_INTERVAL,
AmbariClusterConnector.MAX_ATTEMPTS_FOR_HOSTS);
return ambariHostsJoinStatusCheckerTask.checkStatus(ambariHosts);
}