public MultipleRpcIndexer(IIndexer indexer, boolean rmi, boolean xmlrpc) {
this.baseIndexer = indexer;
if (rmi) {
int port = PortUtil.getPort("indexer.rmi");
logger.info("MultipleRpcIndexer constructor: starting rmi indexer on port " + port);
rmiServer = new RmiServer(port);
rmiServer.addHandler(RmiServer.DEFAULT_SERVICE_NAME, (IRmiIndexer)baseIndexer);
rmiServer.start();
}
if (xmlrpc) {
int port = PortUtil.getPort("indexer.xml");