org.hyperic.sigar
Class FileWatcher
java.lang.Object
org.hyperic.sigar.FileWatcher
- Direct Known Subclasses:
- FileTail, ProcFileMirror
public abstract class FileWatcher
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileWatcher
public FileWatcher(Sigar sigar)
onChange
public abstract void onChange(FileInfo info)
onNotFound
public void onNotFound(FileInfo info)
onException
public void onException(FileInfo info,
SigarException e)
setInterval
public void setInterval(long interval)
getInterval
public long getInterval()
add
public FileInfo add(java.io.File file)
throws SigarException
- Throws:
SigarException
add
public FileInfo add(java.lang.String file)
throws SigarException
- Throws:
SigarException
add
public void add(java.io.File[] files)
throws SigarException
- Throws:
SigarException
add
public void add(java.lang.String[] files)
throws SigarException
- Throws:
SigarException
remove
public void remove(java.io.File file)
remove
public void remove(java.lang.String file)
clear
public void clear()
getFiles
public java.util.Set getFiles()
changed
protected boolean changed(FileInfo info)
throws SigarException,
SigarFileNotFoundException
- Throws:
SigarException
SigarFileNotFoundException
check
public void check()
Copyright ? 2004-2009 Hyperic. All Rights Reserved.