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 class
FileChangeNotifier.FileEntry
-
Constructor Summary
Constructors Constructor Description FileChangeNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(FileChangeListener listener)
protected void
fireNotification(FileChangeNotifier.FileEntry entry)
void
removeListener(FileChangeListener listener)
void
start()
void
start(int startAfter, int interval)
void
stop()
void
unwatch(File file)
void
unwatch(String id, File file)
String
watch(File file)
String
watch(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)
-
-