|
org.netbeans.modules.masterfs/2 2.38 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.masterfs.providers.Notifier<KEY>
public abstract class Notifier<KEY>
This SPI represents the interface between masterfs and different implementations of filesystem watches on various systems. The SPI is kept very minimal, as the only necessary information is a queue of modified folders, the filesystems code will evaluate the nature of the change itself. The SPI also doesn't distinguish between systems able of hierarchical listening and systems without such a capability. The implementation can report more events than registered, the infrastructure should take care of filtering them.
| Constructor Summary | |
|---|---|
Notifier()
|
|
| Method Summary | |
|---|---|
protected abstract KEY |
addWatch(String path)
Register a path for notifications. |
protected abstract String |
nextEvent()
|
protected abstract void |
removeWatch(KEY key)
Unregister a path. |
protected abstract void |
start()
Starts the notifier. |
protected void |
stop()
Get ready for stop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notifier()
| Method Detail |
|---|
protected abstract KEY addWatch(String path)
throws IOException
removeWatch(java.lang.Object) properly.
path - the path to register for notifications
IOException - if the path can't be registered. For example if the
OS limit on the number of watched folders is reached. The exception
should be annotated with localized explanation.
protected abstract void removeWatch(KEY key)
throws IOException
null from the addWatch(java.lang.String) call.
key - the key obtained during registration.
IOException
protected abstract String nextEvent()
throws IOException,
InterruptedException
IOException
InterruptedException
protected abstract void start()
throws IOException
IOException - if the initialization cannot be performed
protected void stop()
throws IOException
IOException
|
org.netbeans.modules.masterfs/2 2.38 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||