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
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
-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
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
-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
] 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
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
(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
+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,
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)
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
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
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
-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
-
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
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
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
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
-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
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
:
15.01.2002 Subject: RE: [simplestore] inital check
in
13:46
-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
[EMAIL PROTECTED] To: Jakarta Commons
Developers List
t
[EMAIL PROTECTED]
cc:
15.01.2002 Subject: RE: [simplestore]
inital check in
13:46
-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
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
Commons
Developers List
t
[EMAIL PROTECTED]
cc:
15.01.2002 Subject: RE: [simplestore]
inital check in
13:46
Please
respond
-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
-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
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
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
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
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
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.
33 matches
Mail list logo