Package | Description |
---|---|
org.apache.logging.log4j.core.appender.rolling.action |
Support classes for the Rolling File Appender.
|
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 |
Composite
PathCondition that only accepts objects that are accepted by all component conditions. |
class |
IfAny |
Composite
PathCondition 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 |
Wrapper
PathCondition that accepts objects that are rejected by the wrapped component filter. |
Modifier and Type | Method | Description |
---|---|---|
PathCondition[] |
IfAll.getDeleteFilters() |
|
PathCondition[] |
IfAny.getDeleteFilters() |
|
PathCondition |
IfNot.getWrappedFilter() |
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.
|
Modifier and Type | Method | Description |
---|---|---|
static boolean |
IfAll.accept(PathCondition[] list,
Path baseDir,
Path relativePath,
BasicFileAttributes attrs) |
Returns
true if all the specified conditions accept the specified path, false otherwise. |
static void |
IfAll.beforeFileTreeWalk(PathCondition[] nestedConditions) |
Calls
IfAll.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 in
AbstractPathAction.getBasePath() . |
Modifier and Type | Method | Description |
---|---|---|
protected abstract FileVisitor<Path> |
AbstractPathAction.createFileVisitor(Path visitorBaseDir,
List<PathCondition> conditions) |
Creates a new
FileVisitor<Path> to pass to the Files.walkFileTree(Path, Set, int, FileVisitor)
method when the AbstractPathAction.execute() method is invoked. |
protected FileVisitor<Path> |
DeleteAction.createFileVisitor(Path visitorBaseDir,
List<PathCondition> conditions) |
|
protected FileVisitor<Path> |
PosixViewAttributeAction.createFileVisitor(Path basePath,
List<PathCondition> conditions) |
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 | Description |
---|---|
DeletingVisitor(Path basePath,
List<? extends PathCondition> pathConditions,
boolean testMode) |
Constructs a new DeletingVisitor.
|
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.