org.apache.openejb.util
Class DirectoryMonitor

java.lang.Object
  extended by 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.
 
Field Summary
static Logger logger
           
 
Constructor Summary
DirectoryMonitor(File target, DirectoryMonitor.Listener listener, int pollIntervalMillis)
           
 
Method Summary
 DirectoryMonitor.Listener getListener()
           
 int getPollIntervalMillis()
           
 File getTarget()
           
 void scan()
          Looks for changes to the immediate contents of the directory we're watching.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

DirectoryMonitor

public DirectoryMonitor(File target,
                        DirectoryMonitor.Listener listener,
                        int pollIntervalMillis)
Method Detail

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.