org.apache.openejb.util
Class DirectoryMonitor
java.lang.Object
org.apache.openejb.util.DirectoryMonitor
public class DirectoryMonitor
- extends Object
- Version:
- $Rev: 920125 $ $Date: 2010-03-07 22:54:24 +0100 (So, 07. Mär 2010) $
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,
int pollIntervalMillis)
getPollIntervalMillis
public int getPollIntervalMillis()
getTarget
public File getTarget()
getListener
public DirectoryMonitor.Listener getListener()
stop
public void stop()
start
public void start()
scan
public void scan()
- Looks for changes to the immediate contents of the directory we're watching.
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.