If maxDirSize is 0, has the ability to filter out files that are not old enough or if more than the maxFilesPerReport have returned as true.
This class was created to simplify the code in {@link #checkFileAge}. Also done to solve potential problem when Xmultra starts observing a large number of directories with zillions of files in each directory. Normally the File.getFiles() method would return all files in a directory and with all these zillions of files, to much memory would be consumed in the creation of the File array returned by File.getFiles().
However, File.getFiles(FileFilter) method can limit files returned.
Because of "maxFilesPerReport" (passed in the constructor below), the number of files that can be returned at a time (to a processor) is limited. If this filter has exceeded the "maxFilesPerReport" amount, it always returns false. This will limit the size of the File array returned by File.getFiles(FileFilter). @author Wayne Weber @since 1.2
|
|