| |
|
| java.lang.Object dalma.container.FileChangeMonitor
All known Subclasses: dalma.container.Redeployer,
FileChangeMonitor | abstract class FileChangeMonitor (Code) | | Periodically checks for an update to a file in a specific directory and invokes a callback.
author: Kohsuke Kawaguchi |
Method Summary | |
public static void | add(FileChangeMonitor job) | public void | cancel() Cancels the monitor. | abstract protected void | onAdded(File file) Invoked when a new file/directory is added. | abstract protected void | onDeleted(File file) Invoked when a file/directory is removed. | abstract protected void | onUpdated(File file) Invoked when a file/directory is changed. |
FileChangeMonitor | public FileChangeMonitor(File dir)(Code) | | |
cancel | public void cancel()(Code) | | Cancels the monitor.
The monitor is also implicitly cancelled when a
FileChangeMonitor is
garbage-collected.
|
onAdded | abstract protected void onAdded(File file)(Code) | | Invoked when a new file/directory is added.
|
onDeleted | abstract protected void onDeleted(File file)(Code) | | Invoked when a file/directory is removed.
|
onUpdated | abstract protected void onUpdated(File file)(Code) | | Invoked when a file/directory is changed.
|
|
|
|