cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gerhard" <g-froehl...@gmx.de>
Subject [C2] storing extension
Date Sat, 16 Jun 2001 13:04:12 GMT
Hi Team,
following proposal for the storing extension:

Store.hold():
When holding a object in the memory, it will be simultaneously written
on to filesystem. The reason is, that when for example the JVM is restartet 
all cached objects will be in persistent state on the filesystem. That would
increase the performance much.
According to Carsten, only CachedEventObjects and CachedStreamObjects
will be stored on the filesystem. Because they could be made serializable.
One question:
The unique key, which is generated from those CachePiplines, is it always
the same key? I observe the key generation over several JVM restarts and
it seemed to be always the same key for every sitemap component.

Store.get():
When getting a object from the store, the method first looks if the object
is available in the memory. When the lookup fails, then the method takes
a look at the filesystem. If this lookup fails again, null is returned.Otherwise 
the object, when the Object.liftime is valid.

Store.free():
The same behavior as now. The object is will be removed from memory
but not from the filesystem.

Store.remove():
The object will be removed from the memory and from the filesystem.

Comments?

cheers
Gerhard



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


Mime
View raw message