org.nuxeo.ecm.webengine.notifier
Class FileChangeNotifier
java.lang.Object
org.nuxeo.ecm.webengine.notifier.FileChangeNotifier
- All Implemented Interfaces:
- FileChangeListener
public class FileChangeNotifier
- extends Object
- implements FileChangeListener
- Author:
- Bogdan Stefanescu
FileChangeNotifier
public FileChangeNotifier()
start
public void start()
start
public void start(int startAfter,
int interval)
stop
public void stop()
watch
public void watch(File file)
throws IOException
- Throws:
IOException
unwatch
public void unwatch(File file)
throws IOException
- Throws:
IOException
addListener
public void addListener(FileChangeListener listener)
removeListener
public void removeListener(FileChangeListener listener)
filesCreated
public void filesCreated(List<File> entries)
- Specified by:
filesCreated
in interface FileChangeListener
filesRemoved
public void filesRemoved(List<File> entries)
- Specified by:
filesRemoved
in interface FileChangeListener
filesModified
public void filesModified(List<File> entries)
- Description copied from interface:
FileChangeListener
- Notifies that the given files changed.
- Specified by:
filesModified
in interface FileChangeListener
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.