Open ashwinraghav opened 11 years ago
It feels like the best way this can be done is by recompiling some of Sun's JDK after making the changes and replacing the jar into the project classpath. So this one is going to involve little coding. But lots of time learning to configure and compile the jdk.
We have our own class called MyFSWatcher. The constructor creates an arraylist of mounted drives (NFS). When the client subscription subscribes to a directory, the class determines whether the file is local or distributed, and handles the notification service.
OK sounds good. I have not looked at the code yet. But sounds good.
The client needs to have a new WatchService that provides a nice abstraction of the traditional watch service and our service. When a directory is subscribed to, differentiate between local dirs and remote dirs and perform the subscription. Ensure transparency. The mechanism for local subscriptions should work without any change.