org.gcube.accounting.common.file
Class FileWatcher
java.lang.Object
org.gcube.accounting.common.file.FileWatcher
public class FileWatcher
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileWatcher
public FileWatcher(String fileName)
FileWatcher
public FileWatcher(File file)
setListener
public void setListener(FileChangedListener listener)
getFile
public File getFile()
getInterval
public long getInterval()
- Return the interval between checks
- Returns:
- the interval in milliseconds
setInterval
public void setInterval(long interval)
- Set the check interval
- Parameters:
interval - in milliseconds
stop
public void stop()
Copyright © 2013. All Rights Reserved.