[Jboss-cvs] JBossAS SVN: r56538 - branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Sep 3 22:12:21 EDT 2006


Author: bstansberry at jboss.com
Date: 2006-09-03 22:12:21 -0400 (Sun, 03 Sep 2006)
New Revision: 56538

Modified:
   branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/CacheListener.java
Log:
Extend AbstractTreeCacheListener

Modified: branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/CacheListener.java
===================================================================
--- branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/CacheListener.java	2006-09-04 02:07:19 UTC (rev 56537)
+++ branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/CacheListener.java	2006-09-04 02:12:21 UTC (rev 56538)
@@ -21,16 +21,14 @@
 */
 package org.jboss.web.tomcat.tc5.session;
 
+import org.jboss.cache.AbstractTreeCacheListener;
 import org.jboss.cache.Fqn;
-import org.jboss.cache.TreeCache;
-import org.jboss.cache.TreeCacheListener;
 import org.jboss.cache.buddyreplication.BuddyManager;
 import org.jboss.logging.Logger;
 import org.jboss.metadata.WebMetaData;
-import org.jgroups.View;
 
 
-public class CacheListener implements TreeCacheListener
+public class CacheListener extends AbstractTreeCacheListener
 {
    // Element within an FQN that is JSESSION
    private static final int JSESSION_FQN_INDEX = 0;
@@ -76,11 +74,6 @@
 
    // --------------- TreeCacheListener methods ------------------------------------
 
-   public void nodeCreated(Fqn fqn)
-   {
-      // We don't care about this event
-   }
-
    public void nodeRemoved(Fqn fqn)
    {
       // Ignore our own activity
@@ -108,22 +101,8 @@
       }
    }
 
-   /**
-    * Called when a node is loaded into memory via the CacheLoader. This is not the same
-    * as {@link #nodeCreated(Fqn)}.
-    */
-   public void nodeLoaded(Fqn fqn)
-   {
-      // We don't care about this event
-   }
-
    public void nodeModified(Fqn fqn)
    {
-      nodeDirty(fqn);
-   }
-
-   private void nodeDirty(Fqn fqn)
-   {
       // If checking for local activity has a higher likelihood of
       // catching unwanted notifications than checking fqn size, 
       // do it first
@@ -192,31 +171,6 @@
       }
    }
 
-   public void nodeVisited(Fqn fqn)
-   {
-      // We don't care about this event
-   }
-
-   public void cacheStarted(TreeCache cache)
-   {
-      // TODO will need to synchronize this with local sessions
-   }
-
-   public void cacheStopped(TreeCache cache)
-   {
-      // TODO will need to synchronize this with local sessions
-   }
-
-   public void viewChange(View new_view)
-   {
-      // We don't care about this event.
-   }
-
-   public void nodeEvicted(Fqn fqn)
-   {
-      // We don't care about this event.
-   }
-   
    private boolean isFqnForOurWebapp(Fqn fqn, boolean isBuddy)
    {
       try




More information about the jboss-cvs-commits mailing list