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 classPathCondition that accepts paths after some count threshold is exceeded during the file tree walk.final classPathCondition that accepts paths after the accumulated file size threshold is exceeded during the file tree walk.final classCompositePathConditionthat only accepts objects that are accepted by all component conditions.final classCompositePathConditionthat accepts objects that are accepted by any component conditions.final classPathCondition that accepts files for deletion if their relative path matches either a glob pattern or a regular expression.final classPathCondition that accepts paths that are older than the specified duration.final classWrapperPathConditionthat accepts objects that are rejected by the wrapped component filter.Fields in org.apache.logging.log4j.core.appender.rolling.action declared as PathConditionModifier and TypeFieldDescriptionstatic final PathCondition[]PathCondition.EMPTY_ARRAYThe empty array.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 booleanIfAll.accept(PathCondition[] list, Path baseDir, Path relativePath, BasicFileAttributes attrs) Returnstrueif all the specified conditions accept the specified path,falseotherwise.static voidIfAll.beforeFileTreeWalk(PathCondition[] nestedConditions) CallsIfAll.beforeFileTreeWalk()on all of the specified nested conditions.static PathCondition[]PathCondition.copy(PathCondition... source) Copies the given input.static IfLastModifiedIfLastModified.createAgeCondition(Duration age, PathCondition... pathConditions) Deprecated.static IfAllIfAll.createAndCondition(PathCondition... components) Create a Composite PathCondition whose components all need to accept before this condition accepts.static DeleteActionDeleteAction.createDeleteAction(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static IfAccumulatedFileCountIfAccumulatedFileCount.createFileCountCondition(int threshold, PathCondition... nestedConditions) Create an IfAccumulatedFileCount condition.static IfAccumulatedFileSizeIfAccumulatedFileSize.createFileSizeCondition(String size, PathCondition... nestedConditions) Create an IfAccumulatedFileSize condition.static IfFileNameIfFileName.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 IfNotIfNot.createNotCondition(PathCondition condition) Create an IfNot PathCondition.static IfAnyIfAny.createOrCondition(PathCondition... components) Create a Composite PathCondition: accepts if any of the nested conditions accepts.IfLastModified.Builder.setNestedConditions(PathCondition... nestedConditions) 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 PathConditionModifierConstructorDescriptionprotectedAbstractPathAction(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 PathConditionModifierConstructorDescriptionDeletingVisitor(Path basePath, List<? extends PathCondition> pathConditions, boolean testMode) Constructs a new DeletingVisitor.
IfLastModified.newBuilder()instead.