return host + ":" + String.valueOf(port);
}
public static void main(String[] args) throws Exception {
IRemoteIndexUpdater updater = new IndexUpdatesListenerStub(Integer.parseInt(args[1]), args[0]);
IndexDescriptor idxDesc = new IndexDescriptor("0of1@defaultCluster");
if (args[2].contains(":")) {
idxDesc.setRsyncAccessString(args[2].split(":")[0]);
idxDesc.setLocalPath(args[2].split(":")[1]);
} else {
idxDesc.setRsyncAccessString("");
idxDesc.setLocalPath(args[2]);
}
System.out.println("Updating " + idxDesc.getRemotePath() +" : " + updater.setNewIndex(idxDesc));
}