[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/stress ...

Ron Sigal ron_sigal at yahoo.com
Wed Dec 13 20:08:02 EST 2006


  User: rsigal  
  Date: 06/12/13 20:08:02

  Added:       src/tests/org/jboss/test/remoting/transport/bisocket/stress   
                        Tag: remoting_2_x BisocketInvokerClientTest.java
                        BisocketInvokerServerTest.java readme.txt
  Log:
  JBREM-650:  Unit tests for bisocket transport.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +28 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/stress/Attic/BisocketInvokerClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketInvokerClientTest.java
  ===================================================================
  RCS file: BisocketInvokerClientTest.java
  diff -N BisocketInvokerClientTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketInvokerClientTest.java	14 Dec 2006 01:08:02 -0000	1.1.2.1
  @@ -0,0 +1,28 @@
  +package org.jboss.test.remoting.transport.bisocket.stress;
  +
  +import org.jboss.test.remoting.transport.socket.stress.SocketInvokerClientTest;
  +
  +/**
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + */
  +public class BisocketInvokerClientTest extends SocketInvokerClientTest
  +{
  +
  +   public String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +
  +   public static void main(String[] args)
  +   {
  +      BisocketInvokerClientTest client = new BisocketInvokerClientTest();
  +      try
  +      {
  +         client.testClientCalls();
  +      }
  +      catch (Exception e)
  +      {
  +         e.printStackTrace();
  +      }
  +   }
  +}
  
  
  
  1.1.2.1   +31 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/stress/Attic/BisocketInvokerServerTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketInvokerServerTest.java
  ===================================================================
  RCS file: BisocketInvokerServerTest.java
  diff -N BisocketInvokerServerTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketInvokerServerTest.java	14 Dec 2006 01:08:02 -0000	1.1.2.1
  @@ -0,0 +1,31 @@
  +package org.jboss.test.remoting.transport.bisocket.stress;
  +
  +import org.jboss.test.remoting.transport.socket.stress.SocketInvokerServerTest;
  +
  +/**
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + */
  +public class BisocketInvokerServerTest extends SocketInvokerServerTest
  +{
  +   public String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +
  +   public static void main(String[] args)
  +   {
  +      BisocketInvokerServerTest server = new BisocketInvokerServerTest();
  +      try
  +      {
  +         server.setUp();
  +//         Thread.currentThread().sleep(300000);
  +         Thread.sleep(7200000);
  +         server.tearDown();
  +         System.out.println("Have torn down test.");
  +      }
  +      catch(Exception e)
  +      {
  +         e.printStackTrace();
  +      }
  +   }
  +}
  
  
  
  1.1.2.1   +6 -0      JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/stress/Attic/readme.txt
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: readme.txt
  ===================================================================
  RCS file: readme.txt
  diff -N readme.txt
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ readme.txt	14 Dec 2006 01:08:02 -0000	1.1.2.1
  @@ -0,0 +1,6 @@
  +This package directory contains client/server classes for testing concurrent invocations through the
  +socket transport.  These are not included as part of standard testsuite run and need to be run manually.
  +
  +6/29/06 - Ran with 250 threads on client, each looping 1M times making server invocations.  The test
  +itself finally timed out after two hours of running (per code in test classes), but was able over 35K invocations
  +per thread without error or leak in memory.
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list