M
Mikhail Teterin
Hello!
An application we need to write has to monitor a directory and process any
files appearing in there -- as quickly as possible.
The usual approach to this task is to rescan the directory every once in a
while, which is horrible -- it loads the system keeping the program in RAM
and still has latency measured in seconds...
How can I ask the kernel to notify my program, when the directory is updated
in any way -- via something like poll(), or select(), or
http://developers.sun.com/solaris/articles/event_completion.html
?
Is there a Java way of doing this already (without periodic polling), or
will I need to make my own JNI class?
Thanks for any pointers!
-mi
An application we need to write has to monitor a directory and process any
files appearing in there -- as quickly as possible.
The usual approach to this task is to rescan the directory every once in a
while, which is horrible -- it loads the system keeping the program in RAM
and still has latency measured in seconds...
How can I ask the kernel to notify my program, when the directory is updated
in any way -- via something like poll(), or select(), or
http://developers.sun.com/solaris/articles/event_completion.html
?
Is there a Java way of doing this already (without periodic polling), or
will I need to make my own JNI class?
Thanks for any pointers!
-mi