Uses of Interface
org.apache.logging.log4j.core.appender.rolling.action.PathCondition
Packages that use PathCondition
Package
Description
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 PathConditionModifier 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.Fields in org.apache.logging.log4j.core.appender.rolling.action declared as PathConditionModifier and TypeFieldDescriptionprivate final PathCondition[]
IfAll.components
private final PathCondition[]
IfAny.components
static final PathCondition[]
PathCondition.EMPTY_ARRAY
The empty array.private final PathCondition
IfNot.negate
private final PathCondition[]
IfAccumulatedFileCount.nestedConditions
private final PathCondition[]
IfAccumulatedFileSize.nestedConditions
private final PathCondition[]
IfFileName.nestedConditions
private final PathCondition[]
IfLastModified.nestedConditions
private PathCondition[]
PosixViewAttributeAction.Builder.pathConditions
Fields in org.apache.logging.log4j.core.appender.rolling.action with type parameters of type PathConditionModifier and TypeFieldDescriptionprivate final List<PathCondition>
AbstractPathAction.pathConditions
private final List<? extends PathCondition>
DeletingVisitor.pathConditions
Methods in org.apache.logging.log4j.core.appender.rolling.action that return PathConditionModifier and TypeMethodDescriptionstatic PathCondition[]
PathCondition.copy
(PathCondition... source) Copies the given input.IfAll.getDeleteFilters()
IfAny.getDeleteFilters()
IfNot.getWrappedFilter()
Methods in org.apache.logging.log4j.core.appender.rolling.action that return types with arguments of type PathConditionModifier and TypeMethodDescriptionIfAccumulatedFileCount.getNestedConditions()
IfAccumulatedFileSize.getNestedConditions()
IfFileName.getNestedConditions()
IfLastModified.getNestedConditions()
AbstractPathAction.getPathConditions()
Returns the list of PathCondition objects.Methods in org.apache.logging.log4j.core.appender.rolling.action with parameters of type PathConditionModifier 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()
.Method parameters in org.apache.logging.log4j.core.appender.rolling.action with type arguments of type PathConditionModifier 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) Constructors in org.apache.logging.log4j.core.appender.rolling.action with parameters of type PathConditionModifierConstructorDescriptionprotected
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.(package private)
DeleteAction
(String basePath, boolean followSymbolicLinks, int maxDepth, boolean testMode, PathSorter sorter, PathCondition[] pathConditions, ScriptCondition scriptCondition, StrSubstitutor subst) Creates a new DeleteAction that starts scanning for files to delete from the specified base path.private
IfAccumulatedFileCount
(int thresholdParam, PathCondition... nestedConditions) private
IfAccumulatedFileSize
(long thresholdSize, PathCondition... nestedConditions) private
IfAll
(PathCondition... filters) private
IfAny
(PathCondition... filters) private
IfFileName
(String glob, String regex, PathCondition... nestedConditions) Constructs a FileNameFilter filter.private
IfLastModified
(Duration age, PathCondition[] nestedConditions) private
IfNot
(PathCondition negate) private
PosixViewAttributeAction
(String basePath, boolean followSymbolicLinks, int maxDepth, PathCondition[] pathConditions, StrSubstitutor subst, Set<PosixFilePermission> filePermissions, String fileOwner, String fileGroup) Constructor parameters in org.apache.logging.log4j.core.appender.rolling.action with type arguments of type PathConditionModifierConstructorDescriptionDeletingVisitor
(Path basePath, List<? extends PathCondition> pathConditions, boolean testMode) Constructs a new DeletingVisitor.