Uses of Interface
org.apache.logging.log4j.core.appender.rolling.action.PathCondition
Package
Description
Support classes for the Rolling File Appender.
-
Uses of PathCondition in org.apache.logging.log4j.core.appender.rolling.action
Modifier and TypeClassDescriptionfinal class
PathCondition that accepts paths after some count threshold is exceeded during the file tree walk.final class
PathCondition that accepts paths after the accumulated file size threshold is exceeded during the file tree walk.final class
CompositePathCondition
that only accepts objects that are accepted by all component conditions.final class
CompositePathCondition
that accepts objects that are accepted by any component conditions.final class
PathCondition that accepts files for deletion if their relative path matches either a glob pattern or a regular expression.final class
PathCondition that accepts paths that are older than the specified duration.final class
WrapperPathCondition
that accepts objects that are rejected by the wrapped component filter.Modifier and TypeFieldDescriptionstatic final PathCondition[]
PathCondition.EMPTY_ARRAY
The empty array.Modifier and TypeMethodDescriptionstatic PathCondition[]
PathCondition.copy
(PathCondition... source) Copies the given input.IfAll.getDeleteFilters()
IfAny.getDeleteFilters()
IfNot.getWrappedFilter()
Modifier and TypeMethodDescriptionIfAccumulatedFileCount.getNestedConditions()
IfAccumulatedFileSize.getNestedConditions()
IfFileName.getNestedConditions()
IfLastModified.getNestedConditions()
AbstractPathAction.getPathConditions()
Returns the list of PathCondition objects.Modifier and TypeMethodDescriptionstatic boolean
IfAll.accept
(PathCondition[] list, Path baseDir, Path relativePath, BasicFileAttributes attrs) Returnstrue
if all the specified conditions accept the specified path,false
otherwise.static void
IfAll.beforeFileTreeWalk
(PathCondition[] nestedConditions) CallsIfAll.beforeFileTreeWalk()
on all of the specified nested conditions.static PathCondition[]
PathCondition.copy
(PathCondition... source) Copies the given input.static IfLastModified
IfLastModified.createAgeCondition
(Duration age, PathCondition... nestedConditions) Create an IfLastModified condition.static IfAll
IfAll.createAndCondition
(PathCondition... components) Create a Composite PathCondition whose components all need to accept before this condition accepts.static DeleteAction
DeleteAction.createDeleteAction
(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static IfAccumulatedFileCount
IfAccumulatedFileCount.createFileCountCondition
(int threshold, PathCondition... nestedConditions) Create an IfAccumulatedFileCount condition.static IfAccumulatedFileSize
IfAccumulatedFileSize.createFileSizeCondition
(String size, PathCondition... nestedConditions) Create an IfAccumulatedFileSize condition.static IfFileName
IfFileName.createNameCondition
(String glob, String regex, PathCondition... nestedConditions) Creates a IfFileName condition that returns true if either the specified glob pattern or the regular expression matches the relative path.static IfNot
IfNot.createNotCondition
(PathCondition condition) Create an IfNot PathCondition.static IfAny
IfAny.createOrCondition
(PathCondition... components) Create a Composite PathCondition: accepts if any of the nested conditions accepts.PosixViewAttributeAction.Builder.withPathConditions
(PathCondition[] pathConditions) Define path conditions to filter files inAbstractPathAction.getBasePath()
.Modifier and TypeMethodDescriptionprotected abstract FileVisitor<Path>
AbstractPathAction.createFileVisitor
(Path visitorBaseDir, List<PathCondition> conditions) Creates a newFileVisitor<Path>
to pass to theFiles.walkFileTree(Path, Set, int, FileVisitor)
method when theAbstractPathAction.execute()
method is invoked.protected FileVisitor<Path>
DeleteAction.createFileVisitor
(Path visitorBaseDir, List<PathCondition> conditions) protected FileVisitor<Path>
PosixViewAttributeAction.createFileVisitor
(Path basePath, List<PathCondition> conditions) ModifierConstructorDescriptionprotected
AbstractPathAction
(String basePath, boolean followSymbolicLinks, int maxDepth, PathCondition[] pathFilters, StrSubstitutor subst) Creates a new AbstractPathAction that starts scanning for files to process from the specified base path.ModifierConstructorDescriptionDeletingVisitor
(Path basePath, List<? extends PathCondition> pathConditions, boolean testMode) Constructs a new DeletingVisitor.