You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2002/03/08 05:10:00 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/store FilesystemStore.java MRUMemoryStore.java

vgritsenko    02/03/07 20:10:00

  Modified:    src/java/org/apache/cocoon/components/store
                        FilesystemStore.java MRUMemoryStore.java
  Log:
  clean up javadoc/imports
  
  Revision  Changes    Path
  1.13      +1 -2      xml-cocoon2/src/java/org/apache/cocoon/components/store/FilesystemStore.java
  
  Index: FilesystemStore.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/store/FilesystemStore.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- FilesystemStore.java	22 Feb 2002 07:00:13 -0000	1.12
  +++ FilesystemStore.java	8 Mar 2002 04:09:59 -0000	1.13
  @@ -73,7 +73,7 @@
    *
    * @author ?
    * @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
  - * @version CVS $Id: FilesystemStore.java,v 1.12 2002/02/22 07:00:13 cziegeler Exp $
  + * @version CVS $Id: FilesystemStore.java,v 1.13 2002/03/08 04:09:59 vgritsenko Exp $
    */
   public final class FilesystemStore
   extends AbstractLoggable
  @@ -293,7 +293,6 @@
   
       protected int countKeys(File directory) {
           int count = 0;
  -        final int subStringBegin = this.directoryFile.getAbsolutePath().length() + 1;
           final File[] files = directory.listFiles();
           for (int i=0; i<files.length; i++) {
               if (files[i].isDirectory()) {
  
  
  
  1.14      +13 -15    xml-cocoon2/src/java/org/apache/cocoon/components/store/MRUMemoryStore.java
  
  Index: MRUMemoryStore.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/store/MRUMemoryStore.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MRUMemoryStore.java	22 Feb 2002 07:00:13 -0000	1.13
  +++ MRUMemoryStore.java	8 Mar 2002 04:09:59 -0000	1.14
  @@ -61,9 +61,7 @@
   import org.apache.avalon.framework.thread.ThreadSafe;
   
   import org.apache.cocoon.util.ClassUtils;
  -import org.apache.cocoon.util.IOUtils;
   
  -import java.io.File;
   import java.io.IOException;
   import java.net.URLEncoder;
   import java.util.Enumeration;
  @@ -82,7 +80,7 @@
    * @author <a href="mailto:g-froehlich@gmx.de">Gerhard Froehlich</a>
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
    * @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
  - * @version CVS $Id: MRUMemoryStore.java,v 1.13 2002/02/22 07:00:13 cziegeler Exp $
  + * @version CVS $Id: MRUMemoryStore.java,v 1.14 2002/03/08 04:09:59 vgritsenko Exp $
    */
   public final class MRUMemoryStore
   extends AbstractLoggable
  @@ -99,7 +97,7 @@
       /**
        * Get components of the ComponentManager
        *
  -     * @param the ComponentManager
  +     * @param manager The ComponentManager
        */
       public void compose(ComponentManager manager) throws ComponentException {
           this.manager = manager;
  @@ -120,8 +118,8 @@
        *      container shutdown or not (Default: false)</LI>
        * </UL>
        *
  -     * @param the Configuration of the application
  -     * @exception ConfigurationException
  +     * @param params Store parameters
  +     * @exception ParameterException
        */
       public void parameterize(Parameters params) throws ParameterException {
           this.maxobjects = params.getParameterAsInteger("maxobjects", 100);
  @@ -179,8 +177,8 @@
        * caller to ensure that the key has a persistent state across
        * different JVM executions.
        *
  -     * @param the key for the object to store
  -     * @param the object to store
  +     * @param key The key for the object to store
  +     * @param value The object to store
        */
       public void store(Object key, Object value) {
           this.hold(key,value);
  @@ -191,8 +189,8 @@
        * with a LinkedList to create the MRU.
        * It also stores objects onto the filesystem if configured.
        *
  -     * @param the key of the object to be stored
  -     * @param the object to be stored
  +     * @param key The key of the object to be stored
  +     * @param value The object to be stored
        */
       public void hold(Object key, Object value) {
           if (getLogger().isDebugEnabled()) {
  @@ -214,7 +212,7 @@
       /**
        * Get the object associated to the given unique key.
        *
  -     * @param the key of the requested object
  +     * @param key The key of the requested object
        * @return the requested object
        */
       public Object get(Object key) {
  @@ -255,7 +253,7 @@
       /**
        * Remove the object associated to the given key.
        *
  -     * @param the key of to be removed object
  +     * @param key The key of to be removed object
        */
       public void remove(Object key) {
           if (getLogger().isDebugEnabled()) {
  @@ -272,7 +270,7 @@
       /**
        * Indicates if the given key is associated to a contained object.
        *
  -     * @param the key of the object
  +     * @param key The key of the object
        * @return true if the key exists
        */
       public boolean containsKey(Object key) {
  @@ -344,7 +342,7 @@
        * FIXME: In the moment only CachedEventObject or
        * CachedStreamObject are stored.
        *
  -     * @param the object to be checked
  +     * @param object The object to be checked
        * @return true if the object is storeable
        */
       private boolean checkSerializable(Object object) {
  @@ -372,7 +370,7 @@
        * the object, which shall be stored on the
        * filesystem.
        *
  -     * @param the key of the object
  +     * @param key The key of the object
        * @return the filename of the key
        */
       private String getFileName(String key) {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org