cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Froehlich" <g-froehl...@gmx.de>
Subject RE: Can we add Store.size()?, Store Janitor Hangs System
Date Mon, 28 Jan 2002 21:02:57 GMT
+10 to add size() to the Interface, although
it doesn't make much sense for the FilesystemStore!

  Gerhard
 
"This message was printed on all-new,
100% virgin electrons
(Tom Harrington)"

>-----Original Message-----
>From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
>Sent: Monday, January 28, 2002 9:56 PM
>To: cocoon-dev@xml.apache.org
>Subject: Can we add Store.size()?, Store Janitor Hangs System
>
>
>People,
>
>What's your opinion on adding size() method to the Store interface?
>Currently method of getting store size by enumerating through all store
>items employed in MRUMemoryStore does not fill me with optimism...
>ahem...
>
>
>Another - related to this - question: What classes are considered
>"Cocoon public API", the ones which have frozen (since beta) interface?
>What classes are "Cocoon Internals", where interface could be changed?
>
>Vadim
>
>
>> From: Gerhard Froehlich [mailto:g-froehlich@gmx.de]
>
><huge snip>
>
>> >> Hava you considered a sort of binary approach to emptying stores?
>> >>
>> >> while (MemoryIsLow) {
>> >>      free half of the items in the next store
>> >>      run gc
>> >> }
>> >
>> >I guess half would be too radical :)
>> >May be something like 1/10th (decimal approach) would do the job
>better?
>> 
>> Everything no problem *if* the Store interface would have a method
>like
>> <code>int size()</code>. But it doesn't provide this in the moment.
>And we
>> all no how people react, when we change a work interface. But I can
>change
>> the implementation of <code>Enumeration keys()</code> and determine so
>the
>> size elements in the store. That would be possible.
>> 
>> 1/10 I like. Half is a little bit <german>krass</german>. Think about
>that
>> chain picture Stefano drawed.
>> 
>>   Gerhard
>> 
>> --------------------------------------------
>> Very funny, Scotty. Now beam down my clothes.
>> ---------------------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message