tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1065949 - /tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/cluster/session/DeltaManager.java
Date Tue, 01 Feb 2011 08:44:15 GMT
Author: rjung
Date: Tue Feb  1 08:44:14 2011
New Revision: 1065949

URL: http://svn.apache.org/viewvc?rev=1065949&view=rev
Log:
Make final.

Modified:
    tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/cluster/session/DeltaManager.java

Modified: tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/cluster/session/DeltaManager.java
URL: http://svn.apache.org/viewvc/tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/cluster/session/DeltaManager.java?rev=1065949&r1=1065948&r2=1065949&view=diff
==============================================================================
--- tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/cluster/session/DeltaManager.java
(original)
+++ tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/cluster/session/DeltaManager.java
Tue Feb  1 08:44:14 2011
@@ -142,7 +142,7 @@ public class DeltaManager extends Cluste
     private boolean receiverQueue = false ;
     private boolean stateTimestampDrop = true ;
     private long stateTransferCreateSendTime; 
-    private boolean hasSessionCreateStatistics = false;
+    private final boolean hasSessionCreateStatistics;
     
     // ------------------------------------------------------------------ stats attributes
     
@@ -172,16 +172,18 @@ public class DeltaManager extends Cluste
     public DeltaManager() {
         super();
         /* Check for TC 6.0.31+ API */
+        boolean getSessionCreateRateFound = false;
         Class<?> clazz = super.getClass();
         try {
             Method method = clazz.getDeclaredMethod("getSessionCreateRate",
                     new Class[] {});
-            hasSessionCreateStatistics = true;
+            getSessionCreateRateFound = true;
         } catch (NoSuchMethodException e) {
              // IGNORE
         } catch (SecurityException e) {
              // IGNORE
         }
+        hasSessionCreateStatistics = getSessionCreateRateFound;
     }
 
     // ------------------------------------------------------------- Properties



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


Mime
View raw message