jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asm...@apache.org
Subject cvs commit: jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/disk LRUMapJCS.java
Date Mon, 10 May 2004 01:15:26 GMT
asmuts      2004/05/09 18:15:26

  Added:       src/java/org/apache/jcs/auxiliary/disk LRUMapJCS.java
  Log:
  New working prototype of disk key managment.  I don't like the startup size overhead problems
with the commons LRUMap.
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/disk/LRUMapJCS.java
  
  Index: LRUMapJCS.java
  ===================================================================
  package org.apache.jcs.auxiliary.disk;
  
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
  import org.apache.commons.collections.LRUMap;
  
  /**
    *  Extension of LRUMap for logging of removals.
    *  Can switch this back to a HashMap easily.
    */
  public class LRUMapJCS extends LRUMap
  {
  
    private static final Log log =
          LogFactory.getLog( LRUMapJCS.class );
  
   public LRUMapJCS()
   {
     super();
   }
  
   public LRUMapJCS( int maxKeySize )
   {
     super( maxKeySize );
   }
  
   protected void processRemovedLRU( Object key, Object value )
   {
     if ( log.isDebugEnabled() )
     {
       log.debug( "Removing key: '" + key + "' from key store." );
       log.debug( "Key store size: '" + this.size() + "'." );
     }
  
   }
  }
  
  
  

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


Mime
View raw message