Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.notifier
Class FileChangeNotifier

java.lang.Object
  extended by org.nuxeo.ecm.webengine.notifier.FileChangeNotifier
All Implemented Interfaces:
FileChangeListener

public class FileChangeNotifier
extends java.lang.Object
implements FileChangeListener

Author:
Bogdan Stefanescu

Nested Class Summary
 class FileChangeNotifier.FileEntry
           
 
Constructor Summary
FileChangeNotifier()
           
 
Method Summary
 void addListener(FileChangeListener listener)
           
 void filesCreated(java.util.List<java.io.File> entries)
           
 void filesModified(java.util.List<java.io.File> entries)
          Notifies that the given files changed.
 void filesRemoved(java.util.List<java.io.File> entries)
           
static void main(java.lang.String[] args)
           
 void removeListener(FileChangeListener listener)
           
 void start()
           
 void start(int startAfter, int interval)
           
 void stop()
           
 void unwatch(java.io.File file)
           
 void watch(java.io.File file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChangeNotifier

public FileChangeNotifier()
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.