TServerSocket serverTransport = new TServerSocket(IndexerServer.this.port);
Indexer.Processor processor = new Indexer.Processor(new IndexerImpl(ie, IndexerServer.this.indexer));
Factory protFactory = new TBinaryProtocol.Factory(true, true);
TServer server = new TThreadPoolServer(processor, serverTransport, protFactory);
System.out.println("Starting indexer server on port " + IndexerServer.this.port + " ...");
server.serve();
} catch( TTransportException tte ){
tte.printStackTrace();
}
}
} ;