Uses of Interface
org.apache.logging.log4j.core.appender.rolling.action.PathCondition
-
Packages that use PathCondition Package Description org.apache.logging.log4j.core.appender.rolling.action Support classes for the Rolling File Appender. -
-
Uses of PathCondition in org.apache.logging.log4j.core.appender.rolling.action
Classes in org.apache.logging.log4j.core.appender.rolling.action that implement PathCondition Modifier and Type Class Description class
IfAccumulatedFileCount
PathCondition that accepts paths after some count threshold is exceeded during the file tree walk.class
IfAccumulatedFileSize
PathCondition that accepts paths after the accumulated file size threshold is exceeded during the file tree walk.class
IfAll
CompositePathCondition
that only accepts objects that are accepted by all component conditions.class
IfAny
CompositePathCondition
that accepts objects that are accepted by any component conditions.class
IfFileName
PathCondition that accepts files for deletion if their relative path matches either a glob pattern or a regular expression.class
IfLastModified
PathCondition that accepts paths that are older than the specified duration.class
IfNot
WrapperPathCondition
that accepts objects that are rejected by the wrapped component filter.Methods in org.apache.logging.log4j.core.appender.rolling.action that return PathCondition Modifier and Type Method Description PathCondition[]
IfAll. getDeleteFilters()
PathCondition[]
IfAny. getDeleteFilters()
PathCondition
IfNot. getWrappedFilter()
Methods in org.apache.logging.log4j.core.appender.rolling.action that return types with arguments of type PathCondition Modifier and Type Method Description List<PathCondition>
IfAccumulatedFileCount. getNestedConditions()
List<PathCondition>
IfAccumulatedFileSize. getNestedConditions()
List<PathCondition>
IfFileName. getNestedConditions()
List<PathCondition>
IfLastModified. getNestedConditions()
List<PathCondition>
AbstractPathAction. getPathConditions()
Returns the list of PathCondition objects.Methods in org.apache.logging.log4j.core.appender.rolling.action with parameters of type PathCondition Modifier and Type Method Description static 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 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
PosixViewAttributeAction.Builder. withPathConditions(PathCondition[] pathConditions)
Define path conditions to filter files inAbstractPathAction.getBasePath()
.Method parameters in org.apache.logging.log4j.core.appender.rolling.action with type arguments of type PathCondition Modifier and Type Method Description protected 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)
Constructors in org.apache.logging.log4j.core.appender.rolling.action with parameters of type PathCondition Constructor Description 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.Constructor parameters in org.apache.logging.log4j.core.appender.rolling.action with type arguments of type PathCondition Constructor Description DeletingVisitor(Path basePath, List<? extends PathCondition> pathConditions, boolean testMode)
Constructs a new DeletingVisitor.
-