WatchService

Michael Hall mik3hall at gmail.com
Mon Oct 22 13:27:10 PDT 2012


On Oct 22, 2012, at 3:12 AM, Alan Bateman wrote:

> On 22/10/2012 07:42, Dr Heinz M. Kabutz wrote:
>> Hi all,
>> 
>> are there any plans to implement a native WatchService implementation for the Mac OS X file system?
> Eventually, until then the file system provider on Mac will fallback to using a simple polling implementation, which is why you are seeing in the thread dump.
> 
> Michael Hall has been experimenting with an implementation, see:
> 
> http://mail.openjdk.java.net/pipermail/nio-dev/2012-July/001791.html
> 
> I don't know if he's got it to the point yet where it is passing the tests

I did a kqueue based implementation that passed the Basic tests. It didn't pass the 'lots of events' I think it was stress test exercising the overflow condition - at all. 
At some point I want to look at the existing implementations to see roughly how that should be handled.

I also plan, again at some point, on trying a fsevents based implementation. I have read this could be a better choice for OS X especially if a large number of files are involved.
Not begun.

 I haven't currently been doing anything with this. The trz project below in my mail signature if of any interest. Feedback welcome.

Michael Hall

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter


More information about the macosx-port-dev mailing list