public abstract class FileWatcher
extends java.lang.Object
Constructor and Description |
---|
FileWatcher(Sigar sigar) |
Modifier and Type | Method and Description |
---|---|
FileInfo |
add(java.io.File file) |
void |
add(java.io.File[] files) |
FileInfo |
add(java.lang.String file) |
void |
add(java.lang.String[] files) |
protected boolean |
changed(FileInfo info) |
void |
check() |
void |
clear() |
java.util.Set |
getFiles() |
long |
getInterval() |
abstract void |
onChange(FileInfo info) |
void |
onException(FileInfo info,
SigarException e) |
void |
onNotFound(FileInfo info) |
void |
remove(java.io.File file) |
void |
remove(java.lang.String file) |
void |
setInterval(long interval) |
public FileWatcher(Sigar sigar)
public abstract void onChange(FileInfo info)
public void onNotFound(FileInfo info)
public void onException(FileInfo info, SigarException e)
public void setInterval(long interval)
public long getInterval()
public FileInfo add(java.io.File file) throws SigarException
SigarException
public FileInfo add(java.lang.String file) throws SigarException
SigarException
public void add(java.io.File[] files) throws SigarException
SigarException
public void add(java.lang.String[] files) throws SigarException
SigarException
public void remove(java.io.File file)
public void remove(java.lang.String file)
public void clear()
public java.util.Set getFiles()
protected boolean changed(FileInfo info) throws SigarException, SigarFileNotFoundException
public void check()
Copyright ? 2004-2011 Hyperic. All Rights Reserved.