asmuts      02/02/13 21:48:34

  Modified:    src/java/org/apache/stratum/jcs/engine/memory/behavior
                        IMemoryCache.java
               src/java/org/apache/stratum/jcs/engine/control Cache.java
  Log:
  need a setCacheAttributes method for memory caches
  
  Revision  Changes    Path
  1.5       +1 -0      
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/memory/behavior/IMemoryCache.java
  
  Index: IMemoryCache.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/memory/behavior/IMemoryCache.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- IMemoryCache.java 31 Jan 2002 05:11:12 -0000      1.4
  +++ IMemoryCache.java 14 Feb 2002 05:48:34 -0000      1.5
  @@ -31,6 +31,7 @@
        */
       public void initialize( String cacheName, ICompositeCacheAttributes cattr, 
ICacheHub hub );
   
  +    // TODO: need a setCacheAttributes or reInitialize method
   
       /**
        *  Description of the Method
  
  
  
  1.14      +6 -3      
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/control/Cache.java
  
  Index: Cache.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/control/Cache.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Cache.java        14 Feb 2002 05:30:51 -0000      1.13
  +++ Cache.java        14 Feb 2002 05:48:34 -0000      1.14
  @@ -214,9 +214,10 @@
       /**
        *  Will no override existing items.
        *
  -     *@param  key              Description of the Parameter
  -     *@param  val              Description of the Parameter
  -     *@exception  IOException  Description of the Exception
  +     *@param  key                        Description of the Parameter
  +     *@param  val                        Description of the Parameter
  +     *@exception  IOException            Description of the Exception
  +     *@exception  ObjectExistsException  Description of the Exception
        */
       public void putSafe( Serializable key, Serializable val )
           throws IOException, ObjectExistsException
  @@ -1137,6 +1138,8 @@
       public void setCacheAttributes( ICompositeCacheAttributes cattr )
       {
           this.cacheAttr = cattr;
  +        // need a better way to do this, what if it is in error
  +        this.memCache.initialize( cattr.getCacheName(), cattr, this );
       }
   
       ////////////////////////////////////////////////
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to