|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springsource.loaded.agent.FileSystemWatcher
public class FileSystemWatcher
A simple watcher for the file system. Uses a thread to keep an eye on a number of files and calls back registered interested parties when a change is observed. The thread only starts when there is something to watch. The thread is given a name indicating the classloader for which it is watching files. Once it starts to watch files the name will be enhanced to indicate how many.
| Constructor Summary | |
|---|---|
FileSystemWatcher(FileChangeListener listener,
int typeRegistryId,
java.lang.String classloadername)
|
|
| Method Summary | |
|---|---|
void |
register(java.io.File fileToMonitor)
Add a new file to the list of those being monitored. |
void |
setPaused(boolean shouldBePaused)
Enables the filesystem watching to be paused/unpaused. |
void |
shutdown()
Shutdown the thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemWatcher(FileChangeListener listener,
int typeRegistryId,
java.lang.String classloadername)
| Method Detail |
|---|
public void shutdown()
public void register(java.io.File fileToMonitor)
fileToMonitor - the file to start monitorpublic void setPaused(boolean shouldBePaused)
shouldBePaused - watching should be paused?
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||