private boolean waitForBackupToBecomeActive(TestableServer backupServer,long waitTimeout) throws Exception {
  long startTime=System.currentTimeMillis();
  boolean isBackupStarted;
  while (!(isBackupStarted=backupServer.isActive()) && System.currentTimeMillis() - startTime < waitTimeout) {
    Thread.sleep(300);
  }
  return isBackupStarted;
}

private boolean waitForBackupToBecomeActive ( TestableServer backupServer , long waitTimeout ) throws Exception { long startTime = System . currentTimeMillis ( ) ; boolean isBackupStarted ; while ( ! ( isBackupStarted = backupServer . isActive ( ) ) && System . currentTimeMillis ( ) - startTime < waitTimeout ) { Thread . sleep ( 300 ) ; } return isBackupStarted ; }
returns true if backup started in given timeout . false otherwise .
