|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PathWatcher
An interface that allows more optimized local path access, by watching files for changes and only scanning those as necessary.
Method Summary | |
---|---|
java.lang.String |
getPath()
Gets the root path that this watcher is watching |
boolean |
hasChanged()
Queries if there are any paths that have changed since the watching started (or since the last call to setClean() . |
boolean |
isWatching()
Queries whether this path watcher is currently watching. |
PathWatcherReport |
poll()
Retrieves a report of the paths which have changed under this PathWatcher's observations since the last time Poll() was invoked. |
void |
setClean()
Sets this watcher to clean, removing any paths that have been changed. |
void |
startWatching()
Enables this path watcher. |
void |
stopWatching()
Disables this path watcher. |
Method Detail |
---|
java.lang.String getPath()
null
)boolean hasChanged()
setClean()
.
true
if paths have changed, false
otherwisevoid startWatching()
void stopWatching()
boolean isWatching()
true
if this watcher is operating,
false
otherwisevoid setClean()
PathWatcherReport poll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |