private static void waitForServer() throws Exception {
        int count = 1;

        while (!isServerUp()) {
            serverThread.join(count * 10000);     // Give a few seconds for the ambari server to start up
            //count += 1; // progressive back off
            //count *= 2; // exponential back off
        }
    }
Waits for the local server until it is ready to accept requests.

@throws Exception
ambari-funtest/src/test/java/org/apache/ambari/funtest/server/tests/ServerTestBase.java