ashwinraghav / mynotify

1 stars 1 forks source link

Transparency for subscriptions #11

Open ashwinraghav opened 11 years ago

ashwinraghav commented 11 years ago

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.

ashwinraghav commented 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.

tjt7a commented 11 years ago

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.

ashwinraghav commented 11 years ago

OK sounds good. I have not looked at the code yet. But sounds good.