You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2010/10/24 01:50:48 UTC

svn commit: r1026714 - /incubator/thrift/trunk/lib/java/test/org/apache/thrift/test/TestServer.java

Author: roger
Date: Sat Oct 23 23:50:48 2010
New Revision: 1026714

URL: http://svn.apache.org/viewvc?rev=1026714&view=rev
Log:
THRIFT-960 switch back to TThreadPoolServer with AbstractServerArgs 

Modified:
    incubator/thrift/trunk/lib/java/test/org/apache/thrift/test/TestServer.java

Modified: incubator/thrift/trunk/lib/java/test/org/apache/thrift/test/TestServer.java
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/java/test/org/apache/thrift/test/TestServer.java?rev=1026714&r1=1026713&r2=1026714&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/java/test/org/apache/thrift/test/TestServer.java (original)
+++ incubator/thrift/trunk/lib/java/test/org/apache/thrift/test/TestServer.java Sat Oct 23 23:50:48 2010
@@ -69,10 +69,10 @@ public class TestServer {
       TServer serverEngine;
 
       // Simple Server
-      serverEngine = new TSimpleServer(new Args(tServerSocket).processor(testProcessor));
+      //serverEngine = new TSimpleServer(new Args(tServerSocket).processor(testProcessor));
 
       // ThreadPool Server
-      //serverEngine = new TThreadPoolServer(testProcessor, tServerSocket, tProtocolFactory);
+      serverEngine = new TThreadPoolServer(new TThreadPoolServer.Args(tServerSocket).processor(testProcessor).protocolFactory(tProtocolFactory));
 
       // Run it
       System.out.println("Starting the server on port " + port + "...");