Package org.nuxeo.runtime.deploy
Class FileChangeNotifier
- java.lang.Object
-
- org.nuxeo.runtime.deploy.FileChangeNotifier
-
public class FileChangeNotifier extends Object
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFileChangeNotifier.FileEntry
-
Constructor Summary
Constructors Constructor Description FileChangeNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(FileChangeListener listener)protected voidfireNotification(FileChangeNotifier.FileEntry entry)voidremoveListener(FileChangeListener listener)voidstart()voidstart(int startAfter, int interval)voidstop()voidunwatch(File file)voidunwatch(String id, File file)Stringwatch(File file)Stringwatch(String id, File file)
-
-
-
Method Detail
-
start
public void start(int startAfter, int interval)
-
start
public void start()
-
stop
public void stop()
-
watch
public String watch(File file) throws IOException
- Throws:
IOException
-
watch
public String watch(String id, File file) throws IOException
- Throws:
IOException
-
unwatch
public void unwatch(File file) throws IOException
- Throws:
IOException
-
unwatch
public void unwatch(String id, File file) throws IOException
- Throws:
IOException
-
addListener
public void addListener(FileChangeListener listener)
-
removeListener
public void removeListener(FileChangeListener listener)
-
fireNotification
protected void fireNotification(FileChangeNotifier.FileEntry entry)
-
-