private static void deployIndex(InteractionProtocol protocol, String indexName, File index)
throws InterruptedException {
DeployClient deployClient1 = new DeployClient(protocol);
IIndexDeployFuture deployment = deployClient1.addIndex(indexName, index.getAbsolutePath(), 1);
LOG.info("Joining deployment on " + deployment.getClass().getName());
deployment.joinDeployment();
}
private static void setupIndex(File index, int size) {
if (index.exists() && index.isDirectory()) {
for (File f : index.listFiles()) {