public interface FileSystemMonitor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastScanned()
Returns the value of the lastScanned property representing the
time that the implementing instance most recently executed a
scan of the configured filesystems.
|
java.io.File |
getRootPath()
Returns the file object of the root path being monitored
|
java.util.Collection |
listUpdatedSince(long pTimestamp,
java.io.File pPath,
boolean pRecurse)
Returns a collection of the files specified by the provided
path which have been modified after the provided timestamp.
|
void |
setLastScanned(long pTimestamp)
Assigns the value of the lastScanned property representing the
time that the instance last executed.
|
void |
setRootPath(java.io.File pAbsolutePath)
Assigns the file object of the root of the path that should be monitored.
|
static final java.lang.String CLASS_VERSION
java.util.Collection listUpdatedSince(long pTimestamp,
java.io.File pPath,
boolean pRecurse)
throws atg.repository.loader.LoaderException
pTimestamp - the long value compared against each File's
last modified value to determine if it has been updatedpPath - the File object to be checkedboolean - flag used to determine whether the check should
be recursively against a folder's contentsatg.repository.loader.LoaderExceptionlong getLastScanned()
void setLastScanned(long pTimestamp)
pTimestamp - the new value of the lastScanned propertyjava.io.File getRootPath()
void setRootPath(java.io.File pAbsolutePath)
pMonitoredFile - the File object of the root path to be monitored