org.apache.avalon.excalibur.monitor
Class DirectoryResource
java.lang.Object
org.apache.avalon.excalibur.monitor.Resource
org.apache.avalon.excalibur.monitor.DirectoryResource
- All Implemented Interfaces:
- Modifiable
public class DirectoryResource
- extends Resource
This is a Resource that monitors a directory. If any files
are added, removed or modified in directory then it will
send an event indicating the change.
- Version:
- $Revision: 1.5 $ $Date: 2004/02/28 11:47:32 $
- Author:
- Avalon Development Team
Method Summary |
long |
lastModified()
The time this was last modified. |
void |
testModifiedAfter(long time)
Test whether this has been modified since time X |
Methods inherited from class org.apache.avalon.excalibur.monitor.Resource |
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenersFrom, fireAndSetModifiedTime, getEventSupport, getPreviousModified, getResourceKey, hasListeners, hasListeners, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setPreviousModified, toString |
ADDED
public static final String ADDED
- See Also:
- Constant Field Values
REMOVED
public static final String REMOVED
- See Also:
- Constant Field Values
MODIFIED
public static final String MODIFIED
- See Also:
- Constant Field Values
DirectoryResource
public DirectoryResource(String resourceKey)
throws Exception
- Throws:
Exception
testModifiedAfter
public void testModifiedAfter(long time)
- Test whether this has been modified since time X
- Specified by:
testModifiedAfter
in interface Modifiable
- Overrides:
testModifiedAfter
in class Resource
lastModified
public long lastModified()
- Description copied from class:
Resource
- The time this was last modified.
- Specified by:
lastModified
in interface Modifiable
- Specified by:
lastModified
in class Resource
Copyright © 1997-2012 Apache Software Foundation. All Rights Reserved.