tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r400206 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
Date Fri, 05 May 2006 23:26:17 GMT
Author: fhanik
Date: Fri May  5 16:26:14 2006
New Revision: 400206

URL: http://svn.apache.org/viewcvs?rev=400206&view=rev
Log:
added doco

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java?rev=400206&r1=400205&r2=400206&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
Fri May  5 16:26:14 2006
@@ -31,7 +31,6 @@
  * Carries the host, and port of the this or other cluster nodes.
  *
  * @author Filip Hanik
- * @author Peter Rossbach
  * @version $Revision: 304032 $, $Date: 2005-07-27 10:11:55 -0500 (Wed, 27 Jul 2005) $
  */
 public class MemberImpl implements Member, java.io.Externalizable {
@@ -62,7 +61,7 @@
     protected int port;
 
     /**
-     * Counter for how many messages have been sent from this member
+     * Counter for how many broadcast messages have been sent from this member
      */
     protected int msgCount = 0;
     /**
@@ -166,13 +165,20 @@
     }
     /**
      * Highly optimized version of serializing a member into a byte array
+     * Returns a cached byte[] reference, do not modify this data
      * @param getalive boolean
      * @return byte[]
      */
     public byte[] getData(boolean getalive)  {
         return getData(getalive,false);
     }
-
+    
+    /**
+     * 
+     * @param getalive boolean - calculate memberAlive time
+     * @param reset boolean - reset the cached data package, and create a new one
+     * @return byte[]
+     */
     public byte[] getData(boolean getalive, boolean reset)  {
         if ( reset ) dataPkg = null;
         //look in cache first



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


Mime
View raw message