printUsage();
return;
}
indexer = new Indexer();
XmlrpcServer indexerServer = new XmlrpcServer(indexerPort);
indexerServer.addHandler("indexer", indexer);
searcher = new CompositeSearcher();
XmlrpcServer searcherServer = new XmlrpcServer(searcherPort);
searcherServer.addHandler("searcher", searcher);
indexerServer.start();
logger.info("Indexer started on port " +Integer.toString(indexerPort));
searcherServer.start();
logger.info("Searcher started on port " +Integer.toString(indexerPort));
} catch (Exception e) {
if (indexer != null) {
indexer.requestStop();