cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: cocoon-2.1/src/documentation/xdocs/developing stores.xml book.xml
Date Wed, 19 May 2004 12:48:12 GMT
cziegeler    2004/05/19 05:48:12

  Modified:    src/documentation/xdocs/developing book.xml
  Added:       src/documentation/xdocs/developing stores.xml
  Adding Sylvains doc from the wiki about stores
  Revision  Changes    Path
  1.7       +1 -0      cocoon-2.1/src/documentation/xdocs/developing/book.xml
  Index: book.xml
  RCS file: /home/cvs/cocoon-2.1/src/documentation/xdocs/developing/book.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- book.xml	8 May 2004 08:57:53 -0000	1.6
  +++ book.xml	19 May 2004 12:48:12 -0000	1.7
  @@ -29,6 +29,7 @@
       <menu-item label="Extending" href="extending.html"/>
       <menu-item label="Avalon" href="avalon.html"/>
       <menu-item label="Source Handling" href="source.html"/>
  +    <menu-item label="Stores" href="stores.html"/>
       <menu-item label="Using Databases" href="datasources.html"/>
       <menu-item label="Parent CM" href="parent-component-manager.html"/>
       <menu-item label="DELI Quick Start" href="deliquick.html"/>
  1.1                  cocoon-2.1/src/documentation/xdocs/developing/stores.xml
  Index: stores.xml
  <?xml version="1.0" encoding="UTF-8"?>
    Copyright 1999-2004 The Apache Software Foundation
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
  <title>Cocoon Source Resolving</title>
        <person name="Sylvain Wallez" email=""/>
      <title>The Store Components in Cocoon</title>
        To keep cached data, Cocoon uses components implementing the 
        <em>org.apache.excalibur.Store</em> interface. Cocoon uses two 
        implementations of this interface, the "transient store" and the "store", 
        and optionnally a third one, the "persistent store".
        <title>The Transient store</title>
          The transient store (role <em>Store.TRANSIENT_STORE</em> is used for
          that are not serializable, or whose storage doesn't make sense across server 
          restart. The transient store lives on its own and has no relation with other 
          stores. This is a mandatory component within Cocoon (i.e. used by Cocoon's code).
          Cocoon uses the transient store to cache XSLT style sheets, XSP logicsheets, etc.
        <title>The Store (aka "main Store")</title>
          The store (role <em>Store.ROLE</em>) is used to store objects that are

          serializable. As the transient store, it is a mandatory component. For 
          efficiency reasons, implementations of the main store should keep most-often 
          used objects in memory and swap older ones to disk.
          Cocoon uses the main store to cache pipeline output.
        <title>Persistent store (optional)</title>
          Some store (<em>Store.ROLE</em>) implementations (but not all) 
          may actually be just an in-memory cache that swap objects by calling 
          the persistent store (<em>Store.PERSISTENT_STORE</em>) when needed.
          the persistent store is an <em>optional</em> component which is used
          by MRUMemoryStore, and nowhere else in the code.
          Two examples to illustrate this:
          <li>when using JISP, we had this mechanism : the store was a MRUMemoryStore

              swapping to the persistent store which was a JISPStore.</li>
          <li>JCS has its own in-memory front end to its own persistent storage. 
               In this configuration Store.ROLE will be a JCSStore and 
               Store.PERSISTENT_STORE will have no implementation, because we don't 
               need it.
        <li>Store.TRANSIENT_STORE : used by Cocoon to store non-serializable objects</li>
        <li>Store.ROLE : used by Cocoon to store serializable objects</li>
        <li>Store.PERSISTENT_STORE : optional component that may be used by in-memory
implementations of Store.ROLE to delegate persistent storage.</li>

View raw message