IoT CAS Frameworks/IOT_Server/Event_Logger_Framework/source/ETLAdapter/src/com/prokosha/adapter/etl/Listener/Filelistener/FileMonitor.java
public void addFileChangeListener(FileChangeListener listener,  String fileName,   long period) 
			throws FileNotFoundException
    {
	removeFileChangeListener(listener, fileName);
	FileMonitorTask task = new FileMonitorTask(listener, fileName);
	timerEntries.put(fileName + listener.hashCode(), task);
	timer.schedule(task, period, period);
    }
/** Add a monitored file with a FileChangeListener.
     * @param listener listener to notify when the file changed.
     * @param fileName name of the file to monitor.
     * @param period polling period in milliseconds.
     */
Add a monitored file with a FileChangeListener.
@param listener listener to notify when the file changed.
@param fileName name of the file to monitor.
@param period polling period in milliseconds.
Add a monitored file with a FileChangeListener . @param listener listener to notify when the file changed . @param fileName name of the file to monitor . @param period polling period in milliseconds .
public void addFileChangeListener(FileChangeListener listener,  String fileName,   long period) 
			throws FileNotFoundException
    {
	removeFileChangeListener(listener, fileName);
	FileMonitorTask task = new FileMonitorTask(listener, fileName);
	timerEntries.put(fileName + listener.hashCode(), task);
	timer.schedule(task, period, period);
    }
public void addFileChangeListener ( FileChangeListener listener , String fileName , long period ) throws FileNotFoundException { removeFileChangeListener ( listener , fileName ) ; FileMonitorTask task = new FileMonitorTask ( listener , fileName ) ; timerEntries . put ( fileName + listener . hashCode ( ) , task ) ; timer . schedule ( task , period , period ) ; }
Add a monitored file with a FileChangeListener.
Add a monitored file with a FileChangeListener .