TTransportFactory serverTransportFactory = getServerTransportFactory();
// define THsHaServer args
// original: THsHaServer + TNonblockingServerSocket
// option: TThreadPoolServer + TServerSocket
TServerSocket serverTransport = new TServerSocket(port);
TThreadPoolServer.Args server_args = new TThreadPoolServer.Args(
serverTransport).processor(new TUGIWrapProcessor(processor))
.minWorkerThreads(64).maxWorkerThreads(64)
.protocolFactory(new TBinaryProtocol.Factory());
if (serverTransportFactory != null)