1 20 21 package org.jahia.services.deamons.filewatcher; 22 23 24 import org.jahia.exceptions.JahiaException; 25 import org.jahia.services.JahiaService; 26 27 import java.util.Observer ; 28 29 30 38 public abstract class JahiaFileWatcherService extends JahiaService { 39 40 41 49 public abstract void addFileWatcher (String threadName, 50 String fullFolderPath, 51 boolean checkDate, 52 long interval, 53 boolean fileOny 54 ) throws JahiaException; 55 56 57 62 public abstract void startFileWatcher (String threadName) throws JahiaException; 63 64 70 public abstract void stopFileWatcher(String threadName) throws JahiaException; 71 72 73 79 public abstract void registerObserver (String threadName, 80 Observer obs 81 ); 82 83 public abstract void shutdown () 84 throws JahiaException; 85 86 87 } | Popular Tags |