monitor.setTaskName("waiting for remote content store to get available");
List<String> dbkeys = new ArrayList<String>();
long startTime = System.currentTimeMillis();
while (!dbkeys.contains(_webApplication)) {
if ((System.currentTimeMillis() - startTime) > 1000 * 60) {
throw new TimeoutException("Timeout waiting for remote content store.");
}
Thread.sleep(2000);
dbkeys = _remoteServer.getServices().getConnectedContentDatabases(_remoteServer.getSession());
}
monitor.worked(1);