[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle ...

Ron Sigal ron_sigal at yahoo.com
Wed Dec 20 04:14:30 EST 2006


  User: rsigal  
  Date: 06/12/20 04:14:30

  Modified:    src/tests/org/jboss/test/remoting/transport/socket/timeout/idle  
                        Tag: remoting_2_x
                        InactiveIdleTimeoutClientTest.java
                        InactiveIdleTimeoutTestServer.java
  Log:
  JBREM-650: Added getTransport().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +8 -3      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/InactiveIdleTimeoutClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InactiveIdleTimeoutClientTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/InactiveIdleTimeoutClientTest.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- InactiveIdleTimeoutClientTest.java	3 Nov 2006 18:58:40 -0000	1.1.2.1
  +++ InactiveIdleTimeoutClientTest.java	20 Dec 2006 09:14:30 -0000	1.1.2.2
  @@ -1,10 +1,10 @@
   package org.jboss.test.remoting.transport.socket.timeout.idle;
   
  -import junit.framework.TestCase;
   import EDU.oswego.cs.dl.util.concurrent.SynchronizedInt;
  +import junit.framework.TestCase;
   import org.apache.log4j.Logger;
  -import org.jboss.remoting.InvokerLocator;
   import org.jboss.remoting.Client;
  +import org.jboss.remoting.InvokerLocator;
   
   /**
    * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  @@ -18,6 +18,11 @@
   
      private Logger logger = Logger.getRootLogger();
   
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +
      public static void main(String[] args) throws Throwable
      {
         InactiveIdleTimeoutClientTest rt = new InactiveIdleTimeoutClientTest();
  @@ -33,7 +38,7 @@
   
      public void runClient(String clientId) throws Throwable
      {
  -      String locatorURI = "socket://localhost:54000/?clientMaxPoolSize=50&timeout=10000";
  +      String locatorURI = getTransport() + "://localhost:54000/?clientMaxPoolSize=50&timeout=10000";
         InvokerLocator locator = new InvokerLocator(locatorURI);
         Client client = new Client(locator);
         client.connect();
  
  
  
  1.1.2.2   +8 -3      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/InactiveIdleTimeoutTestServer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InactiveIdleTimeoutTestServer.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/InactiveIdleTimeoutTestServer.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- InactiveIdleTimeoutTestServer.java	3 Nov 2006 18:58:40 -0000	1.1.2.1
  +++ InactiveIdleTimeoutTestServer.java	20 Dec 2006 09:14:30 -0000	1.1.2.2
  @@ -1,10 +1,10 @@
   package org.jboss.test.remoting.transport.socket.timeout.idle;
   
  +import org.apache.log4j.Logger;
   import org.jboss.jrunit.extensions.ServerTestCase;
  +import org.jboss.remoting.InvokerLocator;
   import org.jboss.remoting.transport.Connector;
   import org.jboss.remoting.transport.socket.SocketServerInvoker;
  -import org.jboss.remoting.InvokerLocator;
  -import org.apache.log4j.Logger;
   
   /**
    * This is just like IdleTimeoutTestServer except instead of
  @@ -21,6 +21,11 @@
   
      private Logger logger = Logger.getRootLogger();
   
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +   
      public static void main(String[] args) throws Throwable
      {
         InactiveIdleTimeoutTestServer rt = new InactiveIdleTimeoutTestServer();
  @@ -66,7 +71,7 @@
      public void startServer() throws Exception
      {
   //      String locatorURI = "socket://localhost:54000/?maxPoolSize=2&timeout=60000&backlog=0";
  -      String locatorURI = "socket://localhost:54000/?maxPoolSize=2&backlog=0&timeout=10000&idleTimeout=15";
  +      String locatorURI = getTransport() + "://localhost:54000/?maxPoolSize=2&backlog=0&timeout=10000&idleTimeout=15";
         InvokerLocator locator = new InvokerLocator(locatorURI);
   
         connector = new Connector();
  
  
  



More information about the jboss-cvs-commits mailing list