tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r531471 - in /tomcat/tc6.0.x/trunk: java/org/apache/catalina/ha/session/SessionIDMessage.java java/org/apache/catalina/ha/session/SessionMessageImpl.java webapps/docs/changelog.xml
Date Mon, 23 Apr 2007 14:11:49 GMT
Author: pero
Date: Mon Apr 23 07:11:44 2007
New Revision: 531471

URL: http://svn.apache.org/viewvc?view=rev&rev=531471
Log:
Add toString method to better logging support.

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionMessageImpl.java
    tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java?view=diff&rev=531471&r1=531470&r2=531471
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java Mon Apr
23 07:11:44 2007
@@ -122,8 +122,9 @@
 		this.orignalSessionID = orignalSessionID;
 	}
 
-    
-
+	public String toString() {
+	    return "SESSIONID-UPDATE#" + getHost() + "." + getContextPath() + "#" + getOrignalSessionID()
+ ":" + getBackupSessionID();
+	}
 
 }
 

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionMessageImpl.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionMessageImpl.java?view=diff&rev=531471&r1=531470&r2=531471
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionMessageImpl.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/SessionMessageImpl.java Mon Apr
23 07:11:44 2007
@@ -152,5 +152,8 @@
     public void setUniqueId(String uniqueId) {
         this.uniqueId = uniqueId;
     }
-
+    
+    public String toString() {
+        return getEventTypeString() + "#" + getContextName() + "#" + getSessionID() ;
+    }
 }

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?view=diff&rev=531471&r1=531470&r2=531471
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Mon Apr 23 07:11:44 2007
@@ -256,6 +256,13 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Cluster">
+    <changelog>
+      <fix>
+         Add toString method to better logging session replication message at tribes MESSAGES
(pero)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 6.0.10 (remm)">
   <subsection name="Catalina">



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


Mime
View raw message