[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-12 Thread kkalmbach
I think that would work great.  Thanks for all your help on this.

-Kevin

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854987#3854987

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854987


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-11 Thread bwang00
OK, I can refactor the region_.getTimeToIdleSeconds() into a public method. 
Will that do what you want then?

-ben

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854936#3854936

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854936


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-10 Thread kkalmbach
one more idea about how to do this.
1) in the xml file make several timeout policies 
 i.e. 5m expires in 5 mintes, 10m expires in 10m etc
2) When someone request to put something in the cache, prepend the approriate 
the timeout value onto the node.

The ideal in this case would be to query the regionMangager to find the 
appropriate value to prepend on the node.  So if someone passed in a 7 minute 
timeout, I could find that the 10m node is the next value above the desired 
threshold.

This would mean a way to get the regionManager from the TreeCache, which I do 
not think I can do right now, but I could extend TreeCache and LRUPoliocy to 
get add a couple of get Methods.

Is this a better idea?  Is it possible?  It does mess up our node stragity a 
little bit (cleanup/queries for a specific node would have to look through 
several top level nodes), but it might be our best option.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854623#3854623

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854623


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-09 Thread bwang00
Ok, let me look into it and get back to you later this week.

-Ben

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854528#3854528

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854528


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-09 Thread kkalmbach
To get the timeout like I would like, would it be possible in LRUAlgorithm in 
the prune method to factor out the call the region.getIdleTimeout. That is, put 
it in a method called getTimeout passing in the region and the nodeEntry,  the 
default implementation just returns the region.getIdleTimeout, but I could then 
override this new method and look at the nodeEntry to get the specific node's 
timeout.

I can include a diff if this does not make sense.

Thanks again for your help

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854429#3854429

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854429


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-07 Thread bela
"kkalmbach" wrote : 
  | 2) Can JbossCache keep statistics?  In order to properly set the 
idleTimeToLive/maxEntries etc..  We want to look at how many times a paticular 
node was successfully retrieved from the cache, as well as how many times an 
entry was attempted to be retireved and it had already been evicted (or was 
never there)
  | 
  | If this functionality does not already exist,  are there hooks where I 
could write my own implementations (and of course submit the changes back).
  | 


Not in 1.1. I'm working on refactoring right now, all aspects such as 
replication, locking, cache loading etc are converted to aspects (a.k.a 
interceptors). This is only in the CVS (head) as of now, but will be part of 
1.2 (timeframe for release: end of November)

To do stats, you'd write an interceptor, then get the interceptor chain (List 
cache.getInterceptors()), and insert your interceptor dynamically at the place 
where you want to insert it.
The interceptor chain is currently assembled according to the cache attributes 
set, but I plan to expose it later via XML as well (for advanced users).

So if you are impatient, you can check out the CVS head code and take a look. 
The invoke() method gives you access to method name, arguments etc. Note though 
that the MethodCall argument will be replaced by Invocation in the 2.x 
timeframe.

Regards,

Bela

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854202#3854202

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854202


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-05 Thread bwang00
To asnwer your questions, both items are on our roadmap. First one is to make the 
region configurable dynamically through api, and the second one is to intrument 
JBossCache so we can know, for example, the cache hit/miss ratio.

Unfortunately, I can't think of an exisiting way to solve your first problem yet.

-Ben

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854118#3854118

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854118


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBossCache] - Re: Questions about functionality

2004-11-05 Thread jiwils
anonymous wrote : If this functionality does not already exist, are there hooks where 
I could write my own implementations (and of course submit the changes back). 

I am sure that Ben and Bela can answer your questions more directly than I can, but I 
had some of the same requirements just from a testing point of view.  Though 
JBossCache comes with a graphical viewer of the cache encapsulated by the 
TreeCacheView class, it did not always work correctly for me, so I implemented the 
TreeCacheListener interface to print out when cache access (there are a variety of 
different methods) occurred to verify that my code was working as expected.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854097#3854097

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854097


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development