org.apache.openejb.util
Class DirectoryMonitor
java.lang.Object
org.apache.openejb.util.DirectoryMonitor
public class DirectoryMonitor
- extends Object
- Version:
- $Rev: 1417506 $ $Date: 2012-12-05 17:19:59 +0100 (Mer, 05 déc 2012) $
|
Nested Class Summary |
static interface |
DirectoryMonitor.Listener
Allows custom behavior to be hooked up to process file state changes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final Logger logger
DirectoryMonitor
public DirectoryMonitor(File target,
DirectoryMonitor.Listener listener,
long pollIntervalMillis)
getPollIntervalMillis
public long getPollIntervalMillis()
getTarget
public File getTarget()
getListener
public DirectoryMonitor.Listener getListener()
stop
public void stop()
start
public void start()
addFile
public void addFile(File file)
removeFile
public void removeFile(File file)
scan
public void scan()
- Looks for changes to the immediate contents of the directory we're watching.
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.