cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Changes in cocoon-store-impl
Date Thu, 05 Apr 2007 08:41:37 GMT

As discusses with Ard and Peter (http://marc.info/?t=117563247800004&r=1&w=2), I 
patched EHDefaultStore and MRUMemoryStore:

<action dev="reinhard" type="fix">
   MRUMemoryStore registers at StoreJanitor only in that case, if StoreJanitor
   is set as dependency. Assuming that in many cases the MRUMemoryStore is
   used for often requested resources like compiled XSLTTemplates or i18n 
resource bundles,
   it doesn't make sense to remove them as most probably they will be added
   within one of the next requests hiting Cocoon. Find more information
   at http://marc.info/?t=117563247800004&amp;r=1&amp;w=2.
</action>
<action dev="reinhard" type="add">
   Expose all configuration properties that EHCache provides via setter methods.
   Using them, EHDefaultStore can be completly configured in the Spring bean
   definition. This allows setting maxElementsInMemory, memoryStoreEvictionPolicy,
   overflowToDisk, diskStorePath, eternal, timeToLiveSeconds, timeToIdleSeconds,
   diskPersistent, diskExpiryThreadIntervalSeconds, registeredEventListeners,
   bootstrapCacheLoader, maxElementsOnDisk. See the 1.2.4 constructor at
   http://ehcache.sourceforge.net/javadoc/net/sf/ehcache/Cache.html for
   details.
</action>
<action dev="reinhard" type="fix">
   EHDefaultStore doesn't register at StoreJanitor anymore. The usage of
   StoreJanitor to remove elements from EHDefaultStore was contra-productive,
   because EHCache provides its own invalidation mechanisms which are more
   sophisticated than the removal of random items. Find more information
   at http://marc.info/?t=117563247800004&amp;r=1&amp;w=2.
</action>
<action dev="reinhard" type="update">
   Make the maximum number of disk objects configureable. The default value
   is 50000.
</action>

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

Mime
View raw message