Package org.forgerock.audit.retention
Class TimestampFilenameFilter
java.lang.Object
org.forgerock.audit.retention.TimestampFilenameFilter
- All Implemented Interfaces:
FilenameFilter
,Predicate<Path>
A
FilenameFilter
that matches historical log files. The FilenameFilter
matches a filename with a
given prefix, filename and timestamp.-
Constructor Summary
ConstructorDescriptionTimestampFilenameFilter
(File initialFile, String prefix, DateTimeFormatter suffixDateFormat) Constructs aTimestampFilenameFilter
given an initial file, prefix and suffix. -
Method Summary
-
Constructor Details
-
TimestampFilenameFilter
Constructs aTimestampFilenameFilter
given an initial file, prefix and suffix.- Parameters:
initialFile
- The initial filename.prefix
- The audit file prefix to match (can benull
).suffixDateFormat
- The audit file date suffix to match.
-
-
Method Details
-
accept
Matches the name of a file to theFilenameFilter
.- Specified by:
accept
in interfaceFilenameFilter
-
test
-