args.transportFactory(new TFramedTransport.Factory());
args.processor(new MapKeeper.Processor(pstore));
args.workerThreads(numThreads);
TServer server = new THsHaServer(args);
logger.info("Starting server...");
server.serve();
} catch (Exception x) {
x.printStackTrace();
logger.error(x.toString() + " " + x.getMessage());
}
}