throw new UnsupportedOperationException("Unexpected location type: " + location.getDataLocationType());
}
}
private ConnectionTester visit(DatabaseLocation loc) {
DatabaseConnectionTester tester = new DatabaseConnectionTester(loc);
class Callback extends CallbackBase implements DatabaseConnectionCallback {
@Override
public void connected(BeginEndQuote quotes) {
AllLocationsTester.this.connectionSucceeded();
}
}
tester.setSourceConnectionCallback(new Callback());
tester.setProgressMonitor(progressMonitor);
return tester;
}