RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-31 Thread Paulo Gaspar
Developers List' Subject: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in) I found this example of a MRUCache on the sun site and tried making a memory cache plugin with the technique. http://developer.java.sun.com

RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-31 Thread Aaron Smuts
31, 2002 6:24 AM To: 'Jakarta Commons Developers List' Subject: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in) I found this example of a MRUCache on the sun site and tried making a memory cache plugin

RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-31 Thread Aaron Smuts
-Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 3:38 AM To: Jakarta Commons Developers List Subject: Re: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check

RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-31 Thread Juozas Baliuka
skip You should try to build it as a memory plugin for JCS. It might require some element attribute additions (what type of reference) if they are useful. The cache hub manages expiration at request time, this could be moved to a background thread. Cleanup of unused items could result in

RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-31 Thread Aaron Smuts
-Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:23 PM To: Jakarta Commons Developers List Subject: RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [simplestore] enhancements (was: [simplestore] inital check

RE: Serious problem with MRUMap -- JCS LRU and MRUMap -- RE: [si mplestore] enhancements (was: [simplestore] inital check in)

2002-01-31 Thread Juozas Baliuka
] enhancements (was: [simplestore] inital check in) skip You should try to build it as a memory plugin for JCS. It might require some element attribute additions (what type of reference) if they are useful. The cache hub manages expiration at request time, this could be moved

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-30 Thread Juozas Baliuka
Hi, http://jdbm.sourceforge.net/ recommended by Aaron is very interesting. There are a lot of good ideas. I write test cases for some very simple O/R mapping framework , It can be used in some trivial situations and can be in simplestore samples. I will use it for readonly data. I want to

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-30 Thread Aaron Smuts
(was: [simplestore] inital check in) Hi, http://jdbm.sourceforge.net/ recommended by Aaron is very interesting. There are a lot of good ideas. I write test cases for some very simple O/R mapping framework , It can be used in some trivial situations and can be in simplestore samples. I will use

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-19 Thread Juozas Baliuka
+1 on changing the interface! The old one seems not to be very useful. Some of the methods are not needed! +1 For the Exceptions I hope I will find some time on the weekend to do this stuff. But you can grap something if you want! a) implementing Testing classes b) changing the interface Hi,

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-19 Thread Gerhard Froehlich
Hi, From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] +1 on changing the interface! The old one seems not to be very useful. Some of the methods are not needed! +1 For the Exceptions I hope I will find some time on the weekend to do this stuff. But you can grap something if you want! a)

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-19 Thread Juozas Baliuka
Agree, then I will move the StoreJanitor in a different package. Maybe we can forget it totally. I will change the interface today. But I think (as you) the most important things are Test classes and benchmarks. Hi, I did almost nothing today, I write a test case, it is the same as main method

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-19 Thread Gerhard Froehlich
Hi Juozas, -Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 19, 2002 5:54 PM To: Jakarta Commons Developers List Subject: RE: [simplestore] enhancements (was: [simplestore] inital check in) Agree, then I will move the StoreJanitor

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-17 Thread Gerhard Froehlich
Juozas, From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Agree! I wanted to setup a junit test enviroment at the weekend! Do you have experience with junit? There are a lot frameworks for unit tests, but we need to JUnit if it is going to be in commons, Simple store has chances to become

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-17 Thread Aaron Smuts
-Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 8:17 AM To: Jakarta Commons Developers List Subject: RE: [simplestore] enhancements (was: [simplestore] inital check in) Maybe I understand you wrong, but look

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-17 Thread Juozas Baliuka
- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 8:17 AM To: Jakarta Commons Developers List Subject: RE: [simplestore] enhancements (was: [simplestore] inital check in) Maybe I understand you wrong, but look at this: In the Cocoon project we have

RE: [simplestore] enhancements (was: [simplestore] inital check in)

2002-01-16 Thread Juozas Baliuka
Ok, But this code is not very useful, It can be an SoftReference usage example. It is better to implement java.util.Map interface if simplestore is kind of cache not Storage. It is some kind SoftMap implementation in commons collections, but this class is not meaningful, because use public

RE: [simplestore] inital check in

2002-01-16 Thread Juozas Baliuka
A Cache should not be responsible for storing, should it? Then it isn't a cache, but a DB... I recommend to use some Storage interface for cache. You will be very glad then you will decide at later time to store your applications state to stable Storage, add transactions . And even if

RE: [simplestore] inital check in

2002-01-16 Thread Juozas Baliuka
Jep, and I do the same in my app, but a layer lower (_not_ in the cache, but in the DB layer, which is the persistency layer I described above). It may interesting for you if you do the same in your app. I use cashe this way: //implementation of StorageCacheHelper not the last

RE: [simplestore] inital check in

2002-01-16 Thread Tom Klaasen (TeleRelay)
-Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: woensdag 16 januari 2002 13:49 To: Jakarta Commons Developers List Subject: RE: [simplestore] inital check in Jep, and I do the same in my app, but a layer lower (_not_ in the cache, but in the DB layer

RE: [simplestore] inital check in

2002-01-15 Thread Juozas Baliuka
Subject: RE: [simplestore] inital check in Hi, I read documentation tested all Reference types today. The problem exists, object is cleared before reference is queued. There is no way to flush expired object to stable storage if it has no strong references, but you can solve it this way

RE: [simplestore] inital check in

2002-01-15 Thread Gerhard Froehlich
: 15.01.2002 Subject: RE: [simplestore] inital check in 13:46

RE: [simplestore] inital check in

2002-01-15 Thread Tom Klaasen (TeleRelay)
-Original Message- From: Gerhard Froehlich [mailto:[EMAIL PROTECTED]] Sent: zaterdag 12 januari 2002 18:12 To: Jakarta Commons Developers List Subject: [simplestore] inital check in Hi all, I just booked in the first version of the simplestore into the sandbox area

RE: [simplestore] inital check in

2002-01-15 Thread Juozas Baliuka
[EMAIL PROTECTED] To: Jakarta Commons Developers List t [EMAIL PROTECTED] cc: 15.01.2002 Subject: RE: [simplestore] inital check in 13:46

RE: [simplestore] inital check in

2002-01-15 Thread Tom Klaasen (TeleRelay)
-Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: dinsdag 15 januari 2002 18:37 To: Jakarta Commons Developers List Subject: RE: [simplestore] inital check in Hi, I think simple store is too simple :). I see some things to do for simple store. [...] 4

[simplestore] enhancements (was: [simplestore] inital check in)

2002-01-15 Thread Gerhard Froehlich
Juozas From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Hi, I think simple store is too simple :). :) I see some things to do for simple store. 1. Add meaningful exception classes +1 on this! 2. Add some helper key class for keys like Class + OID : Object key = new OID( myClass, someKey

RE: [simplestore] inital check in

2002-01-15 Thread Juozas Baliuka
Commons Developers List t [EMAIL PROTECTED] cc: 15.01.2002 Subject: RE: [simplestore] inital check in 13:46 Please respond

RE: [simplestore] inital check in

2002-01-15 Thread Gerhard Froehlich
-Original Message- From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 6:06 PM To: Jakarta Commons Developers List Subject: RE: [simplestore] inital check in -Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: dinsdag

RE: [simplestore] inital check in

2002-01-14 Thread Aaron Smuts
-Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 3:34 AM To: Jakarta Commons Developers List Subject: Re: [simplestore] inital check in StoreJanitorImpl: you can register your Memory Stores in this class. A background Thread

RE: [simplestore] inital check in

2002-01-14 Thread Juozas Baliuka
Hi, persistence + Cache is one of the most common problems, in web applications. And I think recenmtly used algorythm is the best solution for this kind of cache. I saw a lot of cache implementations, but all of them implements Background Cleanup this way: Thread checks memory usage, object

RE: [simplestore] inital check in -- cache (JCS plugins)

2002-01-14 Thread Gerhard Froehlich
Aaron, From: Aaron Smuts [mailto:[EMAIL PROTECTED]] Hi: How do you find JISP? I added a disk auxiliary cache to JCS that uses it and it seems pretty fast and I haven't been able to get it to lock up. It uses a lot of disk space and doesn't take kindly to sharing files. I haven't tried to

RE: [simplestore] inital check in

2002-01-14 Thread Gerhard Froehlich
Juozas, From: Juozas Baliuka [mailto:[EMAIL PROTECTED]] StoreJanitorImpl: you can register your Memory Stores in this class. A background Thread checks if memory running slow in you JVM and if yes it frees some objects out of the registered Stores. Hi, I think it is better to use

RE: [simplestore] inital check in -- cache (JCS plugins)

2002-01-13 Thread Aaron Smuts
Sorry I mistook a typo slow for low. I looked over the code. Aaron -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 13, 2002 8:35 PM To: 'Jakarta Commons Developers List' Subject: RE: [simplestore] inital check in -- cache (JCS plugins

Re: [simplestore] inital check in

2002-01-13 Thread Juozas Baliuka
StoreJanitorImpl: you can register your Memory Stores in this class. A background Thread checks if memory running slow in you JVM and if yes it frees some objects out of the registered Stores. Hi, I think it is better to use java.lang.ref.* to solve problems related to memory management.