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/engine/memory MemoryCache.java
Date Tue, 13 Jul 2004 02:48:30 GMT
asmuts      2004/07/12 19:48:30

  Modified:    src/java/org/apache/jcs/engine/memory/shrinking
                        ShrinkerThread.java
               src/java/org/apache/jcs/engine/memory MemoryCache.java
  Log:
  Fixed shrinker shutdown problem.  memCache.dispose() is now called on shutdown.
  
  Revision  Changes    Path
  1.15      +6 -1      jakarta-turbine-jcs/src/java/org/apache/jcs/engine/memory/shrinking/ShrinkerThread.java
  
  Index: ShrinkerThread.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/engine/memory/shrinking/ShrinkerThread.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ShrinkerThread.java	30 Jun 2004 02:43:51 -0000	1.14
  +++ ShrinkerThread.java	13 Jul 2004 02:48:30 -0000	1.15
  @@ -100,6 +100,11 @@
        */
       public void kill()
       {
  +      if ( log.isInfoEnabled() )
  +      {
  +          log.info( "Killing Shrinker for: "
  +                     + this.cache.getCompositeCache().getCacheName() );
  +      }
           alive = false;
       }
   
  
  
  
  1.13      +7 -1      jakarta-turbine-jcs/src/java/org/apache/jcs/engine/memory/MemoryCache.java
  
  Index: MemoryCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/engine/memory/MemoryCache.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MemoryCache.java	10 Jul 2004 03:53:39 -0000	1.12
  +++ MemoryCache.java	13 Jul 2004 02:48:30 -0000	1.13
  @@ -44,6 +44,12 @@
       public void initialize( CompositeCache cache );
   
       /**
  +     *  Destroy the memory cache
  +     */
  +    public void dispose() throws IOException;;
  +
  +
  +    /**
        *  Get the number of elements contained in the memory store
        *
        *@return    Element count
  
  
  

---------------------------------------------------------------------
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