org.gcube.accounting.common.file
Class FileWatcher

java.lang.Object
  extended by org.gcube.accounting.common.file.FileWatcher

public class FileWatcher
extends Object


Constructor Summary
FileWatcher(File file)
           
FileWatcher(String fileName)
           
 
Method Summary
 File getFile()
           
 long getInterval()
          Return the interval between checks
 void setInterval(long interval)
          Set the check interval
 void setListener(FileChangedListener listener)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWatcher

public FileWatcher(String fileName)

FileWatcher

public FileWatcher(File file)
Method Detail

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.