User: starksm 
  Date: 02/04/09 11:06:03

  Modified:    src/main/org/jboss/mq/il/uil Tag: Branch_2_4
                        UILClientIL.java UILClientILService.java
                        UILServerIL.java UILServerILService.java
  Log:
  Integrate connection ping patch
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.3   +17 -2     jbossmq/src/main/org/jboss/mq/il/uil/UILClientIL.java
  
  Index: UILClientIL.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILClientIL.java,v
  retrieving revision 1.2.2.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- UILClientIL.java  28 Nov 2001 06:15:31 -0000      1.2.2.2
  +++ UILClientIL.java  9 Apr 2002 18:06:02 -0000       1.2.2.3
  @@ -29,7 +29,7 @@
    * @author     Norbert Lataille ([EMAIL PROTECTED])
    * @author     Hiram Chirino ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.2.2.2 $
  + * @version    $Revision: 1.2.2.3 $
    */
   public class UILClientIL implements ClientIL, java.io.Serializable
   {
  @@ -41,7 +41,7 @@
      final static int m_close = 2;
      final static int m_deleteTemporaryDestination = 1;
      final static int m_receive = 3;
  -   
  +   final static int m_pong = 4;
      
      public void close()
         throws Exception
  @@ -128,5 +128,20 @@
         {
            throw throwException;
         }
  +   }
  +
  +   /**
  +    * #Description of the Method
  +    *
  +    * @param serverTime     Description of Parameter
  +    * @exception Exception  Description of Exception
  +    */
  +   public synchronized void pong(long serverTime)
  +          throws Exception
  +   {
  +      checkSocket();
  +      out.writeByte(m_pong);
  +      out.writeLong(serverTime);
  +      waitAnswer();
      }
   }
  
  
  
  1.2.2.3   +6 -2      jbossmq/src/main/org/jboss/mq/il/uil/UILClientILService.java
  
  Index: UILClientILService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILClientILService.java,v
  retrieving revision 1.2.2.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- UILClientILService.java   28 Nov 2001 06:15:31 -0000      1.2.2.2
  +++ UILClientILService.java   9 Apr 2002 18:06:02 -0000       1.2.2.3
  @@ -30,7 +30,7 @@
    * @author     Norbert Lataille ([EMAIL PROTECTED])
    * @author     Hiram Chirino ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.2.2.2 $
  + * @version    $Revision: 1.2.2.3 $
    */
   public class UILClientILService implements Runnable, ClientILService
   {
  @@ -48,7 +48,8 @@
      final static int m_close = 2;
      final static int m_deleteTemporaryDestination = 1;
      final static int m_receive = 3;
  -   
  +   final static int m_pong = 4;
  +
      /**
       *  getClientIL method comment.
       *
  @@ -155,6 +156,9 @@
                     break;
                  case m_close:
                     connection.asynchClose();
  +                  break;
  +               case m_pong:
  +                  connection.asynchPong(in.readLong());
                     break;
                  default:
                     RemoteException e = new RemoteException( "UILClientIL invocation 
contained a bad method code." );
  
  
  
  1.2.2.2   +18 -1     jbossmq/src/main/org/jboss/mq/il/uil/UILServerIL.java
  
  Index: UILServerIL.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerIL.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- UILServerIL.java  23 Aug 2001 03:57:10 -0000      1.2.2.1
  +++ UILServerIL.java  9 Apr 2002 18:06:02 -0000       1.2.2.2
  @@ -37,7 +37,7 @@
    * @author     Hiram Chirino ([EMAIL PROTECTED])
    * @author     Norbert Lataille ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.2.2.1 $
  + * @version    $Revision: 1.2.2.2 $
    */
   public class UILServerIL implements java.io.Serializable, Cloneable, 
org.jboss.mq.il.ServerIL {
   
  @@ -67,6 +67,7 @@
      final static int m_unsubscribe = 18;
      final static int m_destroySubscription = 19;
      final static int m_checkUser = 20;
  +   final static int m_ping = 21;
   
      public UILServerIL( InetAddress a, int port ) {
         this.addr = a;
  @@ -271,5 +272,21 @@
            Exception e = ( Exception )in.readObject();
            throw e;
         }
  +   }
  +
  +   /**
  +    * #Description of the Method
  +    *
  +    * @param dc             Description of Parameter
  +    * @param clientTime     Description of Parameter
  +    * @exception Exception  Description of Exception
  +    */
  +   public synchronized void ping(ConnectionToken dc, long clientTime)
  +          throws Exception
  +   {
  +      checkConnection();
  +      out.writeByte(m_ping);
  +      out.writeLong(clientTime);
  +      waitAnswer();
      }
   }
  
  
  
  1.2.2.6   +5 -1      jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java
  
  Index: UILServerILService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java,v
  retrieving revision 1.2.2.5
  retrieving revision 1.2.2.6
  diff -u -r1.2.2.5 -r1.2.2.6
  --- UILServerILService.java   20 Nov 2001 09:25:34 -0000      1.2.2.5
  +++ UILServerILService.java   9 Apr 2002 18:06:02 -0000       1.2.2.6
  @@ -50,7 +50,7 @@
    *
    * @author     Hiram Chirino ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.2.2.5 $
  + * @version    $Revision: 1.2.2.6 $
    */
   public class UILServerILService extends org.jboss.mq.il.ServerILJMXService 
implements Runnable, UILServerILServiceMBean {
      protected ServerSocket serverSocket;
  @@ -83,6 +83,7 @@
      final static int m_unsubscribe = 18;
      final static int m_destroySubscription = 19;
      final static int m_checkUser = 20;
  +   final static int m_ping = 21;
      final static int SO_TIMEOUT = 5000;
   
      /**
  @@ -284,6 +285,9 @@
                     break;
                  case m_checkUser:
                     result = server.checkUser( ( String )in.readObject(), ( String 
)in.readObject() );
  +                  break;
  +               case m_ping:
  +                  server.ping(connectionToken, in.readLong());
                     break;
                  default:
                     throw new RemoteException( "Bad method code !" );
  
  
  

_______________________________________________________________

Sponsored by:
Looking for hip toys and fun scwag.  There is no better place
then the good friends at ThinkGeek. http://www.ThinkGeek.com/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to