[jboss-remoting-commits] JBoss Remoting SVN: r4045 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Apr 23 00:09:15 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-23 00:09:14 -0400 (Wed, 23 Apr 2008)
New Revision: 4045

Added:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java
Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestCase.java
Log:
JBREM-930: Replaced HTTPInvokerTestServer with StressHTTPInvokerTestServer which gives coyote 1000 worker threads.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestCase.java	2008-04-23 03:01:27 UTC (rev 4044)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestCase.java	2008-04-23 04:09:14 UTC (rev 4045)
@@ -35,7 +35,7 @@
    {
       addTestClasses(StressHTTPInvokerTestClient.class.getName(),
                      1,
-                     HTTPInvokerTestServer.class.getName());
+                     StressHTTPInvokerTestServer.class.getName());
    }
 
    protected Level getTestHarnessLogLevel()
@@ -45,7 +45,7 @@
    
    protected Level getTestLogLevel()
    {
-      return Level.DEBUG;
+      return Level.INFO;
    }
 
    /**

Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java	                        (rev 0)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java	2008-04-23 04:09:14 UTC (rev 4045)
@@ -0,0 +1,54 @@
+
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.remoting.transport.http.keep_alive;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.jboss.test.remoting.performance.synchronous.PerformanceServerTest;
+import org.jboss.test.remoting.performance.synchronous.PerformanceTestCase;
+import org.jboss.test.remoting.transport.http.HTTPInvokerTestServer;
+
+/**
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Revision: 1.1 $
+ * <p>
+ * Copyright Apr 22, 2008
+ * </p>
+ */
+public class StressHTTPInvokerTestServer extends HTTPInvokerTestServer
+{
+   public void setUp() throws Exception
+   {
+      serverPort = 8888;
+      Map metadata = new HashMap();
+      String newMetadata = System.getProperty(PerformanceTestCase.REMOTING_METADATA);
+      if(newMetadata != null && newMetadata.length() > 0)
+      {
+         metadata.putAll(PerformanceServerTest.parseMetadataString(newMetadata));
+      }
+      metadata.put("maxProcessors", "1000");
+      init(metadata);
+   }
+}
+




More information about the jboss-remoting-commits mailing list