tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r407690 - /tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/demos/LoadTest.java
Date Fri, 19 May 2006 02:52:31 GMT
Author: fhanik
Date: Thu May 18 19:52:31 2006
New Revision: 407690

URL: http://svn.apache.org/viewvc?rev=407690&view=rev
Log:
minor adjustment

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/demos/LoadTest.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/demos/LoadTest.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/demos/LoadTest.java?rev=407690&r1=407689&r2=407690&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/demos/LoadTest.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/demos/LoadTest.java
Thu May 18 19:52:31 2006
@@ -136,7 +136,7 @@
                     }
                 } else {
                     try {
-                        msg.setMsgNr((int)++total);
+                        //msg.setMsgNr((int)++total);
                         counter++;
                         if (debug) {
                             printArray(msg.getMessage());
@@ -276,24 +276,9 @@
             
         }
         
-        public LoadMessage(int nr) {
-            this.nr = nr;
-        }
-        
-        public int getMsgNr() {
-            return XByteBuffer.toInt(getMessage(),0);
-        }
-        
-        public void setMsgNr(int nr) {
-            XByteBuffer.toBytes(nr,getMessage(),0);
-        }
-        
         public byte[] getMessage() {
             if ( message == null ) {
-                byte[] data = new byte[size+4];
-                XByteBuffer.toBytes(nr,data,0);
-                System.arraycopy(outdata, 0, data, 4, outdata.length);
-                this.message = data;
+                message = outdata;
             }
             return message;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message