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 classIfAccumulatedFileCountPathCondition that accepts paths after some count threshold is exceeded during the file tree walk.classIfAccumulatedFileSizePathCondition that accepts paths after the accumulated file size threshold is exceeded during the file tree walk.classIfAllCompositePathConditionthat only accepts objects that are accepted by all component conditions.classIfAnyCompositePathConditionthat accepts objects that are accepted by any component conditions.classIfFileNamePathCondition that accepts files for deletion if their relative path matches either a glob pattern or a regular expression.classIfLastModifiedPathCondition that accepts paths that are older than the specified duration.classIfNotWrapperPathConditionthat accepts objects that are rejected by the wrapped component filter.Fields in org.apache.logging.log4j.core.appender.rolling.action declared as PathCondition Modifier and Type Field Description private PathCondition[]IfAll. componentsprivate PathCondition[]IfAny. componentsstatic PathCondition[]PathCondition. EMPTY_ARRAYThe empty array.private PathConditionIfNot. negateprivate PathCondition[]IfAccumulatedFileCount. nestedConditionsprivate PathCondition[]IfAccumulatedFileSize. nestedConditionsprivate PathCondition[]IfFileName. nestedConditionsprivate PathCondition[]IfLastModified. nestedConditionsprivate PathCondition[]PosixViewAttributeAction.Builder. pathConditionsFields in org.apache.logging.log4j.core.appender.rolling.action with type parameters of type PathCondition Modifier and Type Field Description private java.util.List<PathCondition>AbstractPathAction. pathConditionsprivate java.util.List<? extends PathCondition>DeletingVisitor. pathConditionsMethods in org.apache.logging.log4j.core.appender.rolling.action that return PathCondition Modifier and Type Method Description static PathCondition[]PathCondition. copy(PathCondition... source)Copies the given input.PathCondition[]IfAll. getDeleteFilters()PathCondition[]IfAny. getDeleteFilters()PathConditionIfNot. getWrappedFilter()Methods in org.apache.logging.log4j.core.appender.rolling.action that return types with arguments of type PathCondition Modifier and Type Method Description java.util.List<PathCondition>IfAccumulatedFileCount. getNestedConditions()java.util.List<PathCondition>IfAccumulatedFileSize. getNestedConditions()java.util.List<PathCondition>IfFileName. getNestedConditions()java.util.List<PathCondition>IfLastModified. getNestedConditions()java.util.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 booleanIfAll. accept(PathCondition[] list, java.nio.file.Path baseDir, java.nio.file.Path relativePath, java.nio.file.attribute.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... nestedConditions)Create an IfLastModified condition.static IfAllIfAll. createAndCondition(PathCondition... components)Create a Composite PathCondition whose components all need to accept before this condition accepts.static DeleteActionDeleteAction. createDeleteAction(java.lang.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(java.lang.String size, PathCondition... nestedConditions)Create an IfAccumulatedFileSize condition.static IfFileNameIfFileName. createNameCondition(java.lang.String glob, java.lang.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.PosixViewAttributeAction.BuilderPosixViewAttributeAction.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 java.nio.file.FileVisitor<java.nio.file.Path>AbstractPathAction. createFileVisitor(java.nio.file.Path visitorBaseDir, java.util.List<PathCondition> conditions)Creates a newFileVisitor<Path>to pass to theFiles.walkFileTree(Path, Set, int, FileVisitor)method when theAbstractPathAction.execute()method is invoked.protected java.nio.file.FileVisitor<java.nio.file.Path>DeleteAction. createFileVisitor(java.nio.file.Path visitorBaseDir, java.util.List<PathCondition> conditions)protected java.nio.file.FileVisitor<java.nio.file.Path>PosixViewAttributeAction. createFileVisitor(java.nio.file.Path basePath, java.util.List<PathCondition> conditions)Constructors in org.apache.logging.log4j.core.appender.rolling.action with parameters of type PathCondition Constructor Description AbstractPathAction(java.lang.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.DeleteAction(java.lang.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.IfAccumulatedFileCount(int thresholdParam, PathCondition... nestedConditions)IfAccumulatedFileSize(long thresholdSize, PathCondition... nestedConditions)IfAll(PathCondition... filters)IfAny(PathCondition... filters)IfFileName(java.lang.String glob, java.lang.String regex, PathCondition... nestedConditions)Constructs a FileNameFilter filter.IfLastModified(Duration age, PathCondition[] nestedConditions)IfNot(PathCondition negate)PosixViewAttributeAction(java.lang.String basePath, boolean followSymbolicLinks, int maxDepth, PathCondition[] pathConditions, StrSubstitutor subst, java.util.Set<java.nio.file.attribute.PosixFilePermission> filePermissions, java.lang.String fileOwner, java.lang.String fileGroup)Constructor parameters in org.apache.logging.log4j.core.appender.rolling.action with type arguments of type PathCondition Constructor Description DeletingVisitor(java.nio.file.Path basePath, java.util.List<? extends PathCondition> pathConditions, boolean testMode)Constructs a new DeletingVisitor.
-