<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-10977146.post6637455898378204177..comments</id><updated>2010-02-28T06:33:08.116-05:00</updated><title type='text'>Comments on Joey's Scribble's: Monitor a Directory for Changes using Java</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.venishjoe.net/feeds/6637455898378204177/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html'/><author><name>Venish Joe</name><uri>http://www.blogger.com/profile/07972396924856268701</uri><email>venish.joe@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10977146.post-1250603246415896260</id><published>2010-02-28T06:33:08.116-05:00</published><updated>2010-02-28T06:33:08.116-05:00</updated><title type='text'>How can I set up to watch the directory recursivel...</title><content type='html'>How can I set up to watch the directory recursively? Where do I need to add the boolean flag?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/1250603246415896260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/1250603246415896260'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1267356788116#c1250603246415896260' title=''/><author><name>Andrew</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-4486469442903433654</id><published>2009-10-25T19:23:19.987-04:00</published><updated>2009-10-25T19:23:19.987-04:00</updated><title type='text'>@Develper Dude - Yes, but the problem is what we c...</title><content type='html'>@Develper Dude - Yes, but the problem is what we can do with Watchable cannot be completely achieved  with Observable and vice versa. Each is higly specific or highly vague. But by the end of the day, we can complete what we started with the existing APIs but will be better if they much more generic.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/4486469442903433654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/4486469442903433654'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1256512999987#c4486469442903433654' title=''/><author><name>Venish Joe</name><uri>http://www.blogger.com/profile/07972396924856268701</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00694475006929468017'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-4848273997119507681</id><published>2009-10-23T11:16:16.758-04:00</published><updated>2009-10-23T11:16:16.758-04:00</updated><title type='text'>To be fair, there other ways of doing something li...</title><content type='html'>To be fair, there other ways of doing something like this in general with an Observer/Observable, or better yet with a ChangeListener (the latter is usually more specific and you don&amp;#39;t get bombarded with as many events), but the pattern of Watchables/Watchers/WatchService where you register your interest in specific events seems to be more powerful and flexible.&lt;br /&gt;&lt;br /&gt;Of course, there are APIs like the EventBus or Spring Messaging, or various PubSub systems that could be used too. But in general, not just with this particular usage/pattern, I have found many different implementations of patterns that are too specific to a particular usage when with a bit of refactoring and thought they could be reused in a broader domain of problems. Given that, I wish devs would keep that in mind when they come up with these solutions so we could reuse them elsewhere.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/4848273997119507681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/4848273997119507681'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1256310976758#c4848273997119507681' title=''/><author><name>Developer Dude</name><uri>http://www.blogger.com/profile/01475883843077887466</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-2911644807695930843</id><published>2009-10-19T20:37:02.073-04:00</published><updated>2009-10-19T20:37:02.073-04:00</updated><title type='text'>@Developer Dude - That were by initial thoughts to...</title><content type='html'>@Developer Dude - That were by initial thoughts too. Why only NIO ? They could even potentially merge Observable to Watcher and make this as a generic API which can watch a directory, a object or anything it can support. That would be pretty cool.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/2911644807695930843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/2911644807695930843'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1255999022073#c2911644807695930843' title=''/><author><name>Venish Joe</name><uri>http://www.blogger.com/profile/07972396924856268701</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00694475006929468017'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-8042485507606274474</id><published>2009-10-19T19:30:30.647-04:00</published><updated>2009-10-19T19:30:30.647-04:00</updated><title type='text'>Why does this have to be only in NIO?

Why not mak...</title><content type='html'>Why does this have to be only in NIO?&lt;br /&gt;&lt;br /&gt;Why not make this a general interface that could be used outside of NIO? I know - I probably could use it elsewhere, but it seems to me that too many nice ideas like this wind up being implemented with too narrow of a focus, and then someone else has to come along and either adapt it to some other use, or reinvent the wheel elsewhere.&lt;br /&gt;&lt;br /&gt;My point is that there are other services outside of NIO that could bear watching, that could implement Watchable. I have a number of processes where I would like something like this maybe as an interface/adapter to the EventBus.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/8042485507606274474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/8042485507606274474'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1255995030647#c8042485507606274474' title=''/><author><name>Developer Dude</name><uri>http://www.blogger.com/profile/01475883843077887466</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-6407895453133985543</id><published>2009-10-19T05:45:48.854-04:00</published><updated>2009-10-19T05:45:48.854-04:00</updated><title type='text'>From JDK7 API Doc:

"Platform dependencies

The im...</title><content type='html'>From JDK7 API Doc:&lt;br /&gt;&lt;br /&gt;&amp;quot;Platform dependencies&lt;br /&gt;&lt;br /&gt;The implementation that observes events from the file system is intended to map directly on to the native file event notification facility where available, or to use a primitive mechanism, such as polling, when a native facility is not available. Consequently, many of the details on how events are detected, their timeliness, and whether their ordering is preserved are highly implementation specific. For example, when a file in a watched directory is modified then it may result in a single ENTRY_MODIFY event in some implementations but several events in other implementations. Short-lived files (meaning files that are deleted very quickly after they are created) may not be detected by primitive implementations that periodically poll the file system to detect changes.&lt;br /&gt;&lt;br /&gt;If a watched file is not located on a local storage device then it is implementation specific if changes to the file can be detected. In particular, it is not required that changes to files carried out on remote systems be detected.&amp;quot;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/6407895453133985543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/6407895453133985543'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1255945548854#c6407895453133985543' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10977146.post-908412979224283416</id><published>2009-10-18T19:51:55.453-04:00</published><updated>2009-10-18T19:51:55.453-04:00</updated><title type='text'>What does the API do when the FS doesn't support n...</title><content type='html'>What does the API do when the FS doesn&amp;#39;t support notifications ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/908412979224283416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10977146/6637455898378204177/comments/default/908412979224283416'/><link rel='alternate' type='text/html' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html?showComment=1255909915453#c908412979224283416' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.venishjoe.net/2009/10/monitor-directory-for-changes-using.html' ref='tag:blogger.com,1999:blog-10977146.post-6637455898378204177' source='http://www.blogger.com/feeds/10977146/posts/default/6637455898378204177' type='text/html'/></entry></feed>