coderplay / dragon

Real-time computing system based on hadoop yarn
12 stars 5 forks source link

WatchService that can watches file creation events of hdfs #63

Closed coderplay closed 12 years ago

coderplay commented 12 years ago

EventProducer watch the changes of the input directory and tail it's last updated data.

http://openjdk.java.net/projects/nio/javadoc/java/nio/file/WatchService.html

http://docs.oracle.com/javase/tutorial/essential/io/notification.html

coderplay commented 12 years ago

There is also a Apache License equivalent: http://stackoverflow.com/questions/7968488/watchservice-for-java-6

coderplay commented 12 years ago

Miss committing a modification on DragonConfig.java