dims        01/07/15 13:47:23

  Modified:    src/org/apache/cocoon/components/store MRUMemoryStore.java
  Log:
  Patch from Gerhard Froehlich for MRUMemoryStore.
  
  Revision  Changes    Path
  1.4       +5 -1      
xml-cocoon2/src/org/apache/cocoon/components/store/MRUMemoryStore.java
  
  Index: MRUMemoryStore.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/store/MRUMemoryStore.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MRUMemoryStore.java       2001/07/13 11:13:24     1.3
  +++ MRUMemoryStore.java       2001/07/15 20:47:22     1.4
  @@ -209,6 +209,8 @@
               tmpstackobject = null;
             } catch(java.io.IOException e) {  
               getLogger().error("Error in MRUMemoryStore",e);
  +          } catch(Exception ex) {
  +            getLogger().error("Error in MRUMemoryStore",ex);
             }
           }
           try {
  @@ -258,6 +260,7 @@
       /** ..put the new object in the cache, on the top of course ... */
       this.cache.put(key, new 
CacheObject(value,System.currentTimeMillis(),serialisedFlag));
       this.mrulist.addFirst(key);
  +    getLogger().debug("MRUMemoryStore hashmap size=" + cache.size());
     }
   
     /**
  @@ -345,8 +348,9 @@
      * This method checks if an object is seriazable
      */
     private boolean checkSeriazable(Object object) {
  +    getLogger().debug("MRUMemoryStore checkSeriazable(): " + 
object.getClass().getName());
       try {
  -      if((object.getClass().getName().equals("CachedEventObject")) 
  +      
if((object.getClass().getName().equals("org.apache.cocoon.caching.CachedEventObject")) 
             || 
(object.getClass().getName().equals("org.apache.cocoon.caching.CachedStreamObject"))
             || 
(ClassUtils.implementsInterface(object.getClass().getName(),"org.apache.cocoon.caching.CacheValidity")))
 {
           return true;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to