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

Ron Sigal ron_sigal at yahoo.com
Wed Dec 27 01:26:53 EST 2006


  User: rsigal  
  Date: 06/12/27 01:26:53

  Modified:    src/tests/org/jboss/test/remoting/transport/socket/timeout/idle    
                        IdleTimeoutClientTest.java
                        IdleTimeoutTestServer.java
                        InactiveIdleTimeoutClientTest.java
                        InactiveIdleTimeoutTestServer.java
  Log:
  JBREM-650:  Added ability to override transport and, in some cases, port.
  
  Revision  Changes    Path
  1.3       +6 -1      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/IdleTimeoutClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IdleTimeoutClientTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/IdleTimeoutClientTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- IdleTimeoutClientTest.java	3 Nov 2006 16:19:16 -0000	1.2
  +++ IdleTimeoutClientTest.java	27 Dec 2006 06:26:53 -0000	1.3
  @@ -18,6 +18,11 @@
   
      private Logger logger = Logger.getRootLogger();
   
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +
      public static void main(String[] args) throws Throwable
      {
         IdleTimeoutClientTest rt = new IdleTimeoutClientTest();
  @@ -27,7 +32,7 @@
   
      public void testRunClients() 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.3       +6 -1      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/IdleTimeoutTestServer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IdleTimeoutTestServer.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/IdleTimeoutTestServer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- IdleTimeoutTestServer.java	3 Nov 2006 16:19:16 -0000	1.2
  +++ IdleTimeoutTestServer.java	27 Dec 2006 06:26:53 -0000	1.3
  @@ -14,6 +14,11 @@
   
      private Logger logger = Logger.getRootLogger();
   
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +   
      public static void main(String[] args) throws Throwable
      {
         IdleTimeoutTestServer rt = new IdleTimeoutTestServer();
  @@ -37,7 +42,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=60000&idleTimeout=5";
  +      String locatorURI = getTransport() + "://localhost:54000/?maxPoolSize=2&backlog=0&timeout=60000&idleTimeout=5";
         InvokerLocator locator = new InvokerLocator(locatorURI);
   
         connector = new Connector();
  
  
  
  1.3       +6 -1      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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- InactiveIdleTimeoutClientTest.java	3 Nov 2006 19:04:40 -0000	1.2
  +++ InactiveIdleTimeoutClientTest.java	27 Dec 2006 06:26:53 -0000	1.3
  @@ -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.3       +6 -1      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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- InactiveIdleTimeoutTestServer.java	3 Nov 2006 19:04:40 -0000	1.2
  +++ InactiveIdleTimeoutTestServer.java	27 Dec 2006 06:26:53 -0000	1.3
  @@ -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