com.teamdev.filewatch.linux
Class INotifyWatcher
java.lang.Object
com.teamdev.filewatch.FileWatcher
com.teamdev.filewatch.linux.INotifyWatcher
public final class INotifyWatcher
- extends FileWatcher
Provides INotify API functionality for monitoring file system events on Linux platforms.
Methods inherited from class com.teamdev.filewatch.FileWatcher |
accept, addFileEventsListener, addListener, addListener, addWatcherListener, create, getFilter, getFolder, getOptions, isRunning, removeFileEventsListener, removeListener, removeListener, removeWatcherListener, resetOptions, setFilter, setOptions, setOptions, setRunning, setRunning, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INotifyWatcher
public INotifyWatcher(java.io.File folder)
startWatching
protected void startWatching()
- Perfom start of the watching process.
- Specified by:
startWatching
in class FileWatcher
stopWatching
protected void stopWatching()
- Perfom stop of the watching process.
- Specified by:
stopWatching
in class FileWatcher
release
protected void release()
- Perfom release native resources.
- Specified by:
release
in class FileWatcher
readEvents
protected java.util.List<FileEvent> readEvents()
- Reads next portion of file system events.
- Specified by:
readEvents
in class FileWatcher
- Returns:
- portion of file system events
getBufferSize
public int getBufferSize()
setBufferSize
public void setBufferSize(int bufferSize)