| java.lang.Object org.apache.geronimo.deployment.hot.DirectoryMonitor
DirectoryMonitor | public class DirectoryMonitor implements Runnable(Code) | | Meant to be run as a Thread that tracks the contents of a directory.
It sends notifications for changes to its immediate children (it
will look into subdirs for changes, but will not send notifications
for files within subdirectories). If a file continues to change on
every pass, this will wait until it stabilizes before sending an
add or update notification (to handle slow uploads, etc.).
version: $Rev: 539130 $ $Date: 2007-05-17 14:45:24 -0700 (Thu, 17 May 2007) $ |
Inner Class :public static interface Listener | |
Constructor Summary | |
public | DirectoryMonitor(File directory, Listener listener, int pollIntervalMillis) |
DirectoryMonitor | public DirectoryMonitor(File directory, Listener listener, int pollIntervalMillis)(Code) | | |
close | public synchronized void close()(Code) | | |
getListener | public Listener getListener()(Code) | | |
getPollIntervalMillis | public int getPollIntervalMillis()(Code) | | |
initialize | public void initialize()(Code) | | |
isDone | public synchronized boolean isDone()(Code) | | |
removeModuleId | public void removeModuleId(Artifact id)(Code) | | |
setDirectory | public void setDirectory(File directory)(Code) | | Warning: changing the directory at runtime will cause all files in the
old directory to be removed and all files in the new directory to be
added, next time the thread awakens.
|
setListener | public void setListener(Listener listener)(Code) | | |
setPollIntervalMillis | public void setPollIntervalMillis(int pollIntervalMillis)(Code) | | |
|
|