Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 56395 invoked from network); 6 May 2005 13:12:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 13:12:59 -0000 Received: (qmail 45926 invoked by uid 500); 6 May 2005 13:14:26 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 45855 invoked by uid 500); 6 May 2005 13:14:25 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 45823 invoked by uid 99); 6 May 2005 13:14:25 -0000 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=FORGED_YAHOO_RCVD,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web31103.mail.mud.yahoo.com (HELO web31103.mail.mud.yahoo.com) (68.142.200.36) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 06 May 2005 06:14:25 -0700 Received: (qmail 84735 invoked by uid 60001); 6 May 2005 13:11:07 -0000 Message-ID: <20050506131107.84730.qmail@web31103.mail.mud.yahoo.com> Received: from [69.201.130.192] by web31103.mail.mud.yahoo.com via HTTP; Fri, 06 May 2005 06:11:07 PDT Date: Fri, 6 May 2005 06:11:07 -0700 (PDT) From: Reply-To: ogjunk-commons@yahoo.com Subject: Re: [VFS] FileChangeEvent, inotify, and file changes outside JVM To: Jakarta Commons Users List In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Mario, Having the option to let DefaultFileMonitor sleep is a good option, although it sounds to me like that's only a short-term help. That would be really cool and useful would be VFS support for instant file change event updates, and if it didn't have to keep references to all "known" files in memory. So yes, that probably means it's time for a JNI piece for Winblows, Mac and Linux. I'm not good with C/C++, and hence with JNI, but that link I sent.... http://www.ibm.com/developerworks/linux/library/l-inotify.html - has some C code that may help somebody going with at least inotify/Linux support. I'm not sure how active VFS is, and how many people are working on it. How realistic would it be to hope to see support for this in the next few months from VFS? Thanks, Otis --- Mario Ivankovits wrote: > Hi! > >Regarding DefaultFileMonitor - how scalable is this? More > precisely, > >say I wanted to build yet another desktop indexing/search tool, and > >thus monitor _everything_, or a few hundred or thousands of > >directories, would DefaultFileMonitor be able to handle it? > > > >I know, it depends on CPU, memory, etc., but have people tested it > with > >more than a few dozen directories? > > > The latest changes to the DefaultFileMonitor (not commited yet) > introduces a new function which allows you to configure it to sleep > every e.g. 1000 scanned files. > So it should be possible to let it run very passive. > > A problem might be that it will keep the whole filestructure in > memory > and thus it might be a problem with memory if you try to index a > large > filesystem. > You have to try to see if this could be a way. > However, if you are bound to local files only it might be better to > use > JNI to access the os filesystem-events. > > Maybe its time to start off a new project for this ... > > Ciao, > Mario --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org