public abstract class JahiaFileWatcherService extends JahiaService
settingsBean| Constructor and Description |
|---|
JahiaFileWatcherService() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addFileWatcher(String threadName,
String fullFolderPath,
boolean checkDate,
long interval,
boolean fileOny)
addFileWatcher
|
abstract FileWatcher |
getFileWatcher(String threadName)
getFileWatcher
|
abstract void |
registerObserver(String threadName,
Observer obs)
Register an Observer Thread with an Observable Thread
|
abstract void |
startFileWatcher(String threadName)
Call the start method of the thread
|
abstract void |
stopFileWatcher(String threadName)
Stops the file watcher thread.
|
getSettingsBean, setSettingsBean, start, stoppublic abstract void addFileWatcher(String threadName, String fullFolderPath, boolean checkDate, long interval, boolean fileOny) throws JahiaException
(String) - threadName, the Name to identify this thread(String) - fullFolderPath, the real path to the folder to watch(boolean) - checkDate, check new fle by last modif date(long) - intetal, the interval in millisJahiaExceptionpublic abstract void startFileWatcher(String threadName) throws JahiaException
(String) - threadName, the Name to identify this threadJahiaExceptionpublic abstract void stopFileWatcher(String threadName) throws JahiaException
threadName - String the name of the thread to shutdown.JahiaExceptionpublic abstract void registerObserver(String threadName, Observer obs)
(String) - threadName, the Name of Observable object(Observer) - the observer objectpublic abstract FileWatcher getFileWatcher(String threadName)
threadName - the Name to identify this threadCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.