Skip to content
anuragpeshne edited this page Apr 14, 2013 · 1 revision
  • TransOS makes use of WatchService which is feature of Java 7.
  • WatchService uses native file event notification facility where available and falls back to primitive mechanism, such as polling, when a native facility is not available.
  • Since it is dependent of native event notification we get different event notification on different OS.
  • For Example when a file is edited:
    • We get ENTRY_MODIFY on Windows 7
    • On Ubuntu 12.10 we get series of ENTRY_CREATED and ENTRY_DELETE notification on host system temporary files.
  • This can result in unnecessary file writes which is not serious issue since these writes are idempotent actions.
  • Thus system's behavior is platform dependent and not quite unpredictable.

Track Issues: Issues

Clone this wiki locally