public static void main(String[] args) throws TTransportException {
Map conf=StormConfig.read_storm_config();
final Drpc service=new Drpc();
int port =StormUtils.parseInt(conf.get(Config.DRPC_PORT));
TNonblockingServerSocket socket=new TNonblockingServerSocket(port);
THsHaServer.Args targs = new THsHaServer.Args(socket);
targs.workerThreads(64);
targs.protocolFactory(new TBinaryProtocol.Factory());
targs.processor(new DistributedRPC.Processor<DistributedRPC.Iface>(service));
final THsHaServer handler_server = new THsHaServer(targs);
int portinvoke =StormUtils.parseInt(conf.get(Config.DRPC_INVOCATIONS_PORT));
TNonblockingServerSocket socketInvoke=new TNonblockingServerSocket(portinvoke);
THsHaServer.Args targsInvoke = new THsHaServer.Args(socketInvoke);
targsInvoke.workerThreads(64);
targsInvoke.protocolFactory(new TBinaryProtocol.Factory());
targsInvoke.processor(new DistributedRPCInvocations.Processor<DistributedRPCInvocations.Iface>(service));