* Utility method to upload a Solr config into ZooKeeper. If you don't have the config in the form of
* a filesystem directory, you might want to use {@link #uploadConfig(String, byte[], byte[])}.
*/
public void uploadConfig(String confName, File confDir) throws InterruptedException, IOException, KeeperException {
SolrZkClient zkClient = new SolrZkClient(zkConnectString, 30000, 30000,
new OnReconnect() {
@Override
public void command() {}
});
ZkController.uploadConfigDir(zkClient, confDir, confName);
zkClient.close();