use of org.apache.thrift.server.TServer.Args in project HackTutorial by linrongbin16.
the class Server method main.
public static void main(String[] args) throws Exception {
ServerSocket socket = new ServerSocket(30003);
TServerSocket serverTransport = new TServerSocket(socket);
Basic.BasicService.Processor processor = new Basic.BasicService.Processor(new BasicServiceImpl());
TServer server = new TSimpleServer(new Args(serverTransport).processor(processor));
System.out.println("Server Starting...");
server.serve();
}
Aggregations