public void prepare(Map storm_conf, Configuration login_conf) {
this.login_conf = login_conf;
}
public TServer getServer(int port, TProcessor processor) throws IOException, TTransportException {
TTransportFactory serverTransportFactory = getServerTransportFactory();
//define THsHaServer args
//original: THsHaServer + TNonblockingServerSocket
//option: TThreadPoolServer + TServerSocket
TServerSocket serverTransport = new TServerSocket(port);