org.apache.xmlrpc.test
Class ScalabilityTest

java.lang.Object
  extended by TestCase
      extended by org.apache.xmlrpc.test.ScalabilityTest

public class ScalabilityTest
extends TestCase

Tests the frameworks scalability.


Nested Class Summary
static class ScalabilityTest.Adder
          Primitive handler class
private static class ScalabilityTest.Client
           
private  class ScalabilityTest.MyServletWebServer
           
private  class ScalabilityTest.MyWebServer
           
 
Field Summary
private static int BASE
           
private static java.lang.Integer EIGHT
           
private static java.lang.Integer FIVE
           
private  ScalabilityTest.MyServletWebServer server
           
private  org.apache.xmlrpc.webserver.XmlRpcServlet servlet
           
private static java.lang.Integer THREE
           
private  ScalabilityTest.MyWebServer webServer
           
 
Constructor Summary
ScalabilityTest()
           
 
Method Summary
private  void initServletWebServer()
           
private  void initWebServer()
           
private  org.apache.xmlrpc.server.XmlRpcHandlerMapping newXmlRpcHandlerMapping()
           
private  void shutdownServletWebServer()
           
private  void shutdownWebServer()
           
 void testSingleClient()
          Runs the test with a single client.
 void testSingleWebServerClient()
          Runs the web server test with a single client.
 void testTenClient()
          Runs the test with ten clients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE

private static final int BASE
See Also:
Constant Field Values

THREE

private static final java.lang.Integer THREE

FIVE

private static final java.lang.Integer FIVE

EIGHT

private static final java.lang.Integer EIGHT

servlet

private org.apache.xmlrpc.webserver.XmlRpcServlet servlet

server

private ScalabilityTest.MyServletWebServer server

webServer

private ScalabilityTest.MyWebServer webServer
Constructor Detail

ScalabilityTest

public ScalabilityTest()
Method Detail

newXmlRpcHandlerMapping

private org.apache.xmlrpc.server.XmlRpcHandlerMapping newXmlRpcHandlerMapping()
                                                                       throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

initServletWebServer

private void initServletWebServer()
                           throws java.lang.Exception
Throws:
java.lang.Exception

shutdownServletWebServer

private void shutdownServletWebServer()

initWebServer

private void initWebServer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

shutdownWebServer

private void shutdownWebServer()

testSingleClient

public void testSingleClient()
                      throws java.lang.Exception
Runs the test with a single client.

Throws:
java.lang.Exception

testSingleWebServerClient

public void testSingleWebServerClient()
                               throws java.lang.Exception
Runs the web server test with a single client.

Throws:
java.lang.Exception

testTenClient

public void testTenClient()
                   throws java.lang.Exception
Runs the test with ten clients.

Throws:
java.lang.Exception