Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-user-archive@www.apache.org Received: (qmail 75437 invoked from network); 19 Jan 2004 05:48:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Jan 2004 05:48:47 -0000 Received: (qmail 47339 invoked by uid 500); 19 Jan 2004 05:48:26 -0000 Delivered-To: apmail-jakarta-turbine-jcs-user-archive@jakarta.apache.org Received: (qmail 47183 invoked by uid 500); 19 Jan 2004 05:48:25 -0000 Mailing-List: contact turbine-jcs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Users List" Reply-To: "Turbine JCS Users List" Delivered-To: mailing list turbine-jcs-user@jakarta.apache.org Received: (qmail 47170 invoked from network); 19 Jan 2004 05:48:24 -0000 Received: from unknown (HELO hutch.nm.com) (203.103.221.38) by daedalus.apache.org with SMTP; 19 Jan 2004 05:48:24 -0000 Received: from c2.nm.com.au (unverified) by hutch.nm.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Mon, 19 Jan 2004 16:53:21 +1100 MIME-Version: 1.0 Sensitivity: To: "Turbine JCS Users List" Subject: RE: Access to All Disk Cache Items X-Mailer: Lotus Notes Release 5.0.12 February 13, 2003 Message-ID: From: ankur.kumar@axa.com.au Date: Mon, 19 Jan 2004 16:48:07 +1100 X-MIMETrack: Serialize by Router on ELAN-MEL/AU/NMHDMZ(Release 5.0.11 |July 24, 2002) at 01/19/2004 04:34:21 PM, Serialize complete at 01/19/2004 04:34:21 PM Content-Type: multipart/alternative; boundary="=_alternative 001FE0E5CA256E20_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=_alternative 001FE0E5CA256E20_= Content-Type: text/plain; charset="us-ascii" If I iterate through key objects of memory cache, while memory cache is active, is it gonna cause any issue? Please respond to "Turbine JCS Users List" To: 'Turbine JCS Users List' cc: Subject: RE: Access to All Disk Cache Items I can't think of a clean way to do it. The disk cache is treated pretty much as one of the other auxiliary caches. Nothing like this was built into the interfaces for any of the remote auxiliaries, since for them it wouldn't be very useful. Another reason why this doesn't exist for disk caches is that JCS requires a memory cache but not a disk. Also, you could have more than one disk. The auxiliaries are typed. Basically you'd need a method that would expose all the auxiliaries plugged into the hub, then you'd have to iterate through them looking for disk caches, then if a method existed, cast to the appropriate interface and then call it. Let me think a bit longer about this. For testing purposes, you don't absolutely need this. You can set the memory size to 0, put in a bunch of stuff, and then try to get it out. You put it in, you know the keys, so you can get it out. If it comes back it was on disk. This is basically what the simple build tests do already. Another reason why there are not many ways to get all the keys is that such a list can only be used why the cache is inactive, else it gets all messed up. There is no good way to iterate through the keys of an active map. The current method should copy the key list and then give you a copy. If something is removed during the copy, the copy should fail. Priority is given to the normal use, not the diagnostic. Aaron > -----Original Message----- > From: ankur.kumar@axa.com.au [mailto:ankur.kumar@axa.com.au] > Sent: Sunday, January 18, 2004 11:17 PM > To: Turbine JCS Users List > Subject: Access to All Disk Cache Items > > I want to access all disk cache items through a Java program as I'm > writing a Cache Debugger/Analyzer. > > I can easily access CompositeCache, which helps me to go through all > cache objects present in memory like: > memoryCache = cache.getMemoryCache(); > Object keyObjects[] = memoryCache.getKeyArray(); > for(int i=0; i ................... > > > Can I get access to disk cache items in the same way using CompositeCache? > > > > > ************************************************************************ ** > ******* > Important Note > This email (including any attachments) contains information which is > confidential and may be subject to legal privilege. If you are not > the intended recipient you must not use, distribute or copy this > email. If you have received this email in error please notify the > sender immediately and delete this email. Any views expressed in this > email are not necessarily the views of AXA. Thank you. > ************************************************************************ ** > ******* --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. ********************************************************************************* --=_alternative 001FE0E5CA256E20_=--