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