| Modifier and Type | Class and Description |
|---|---|
| public static enum | SuffixRotator.
The compression type for the rotation |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AccessControlContext | acc
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final String | |
| private final SuffixRotator. | |
| private final String | |
| pack-priv static final SuffixRotator | EMPTY
An empty rotation suffix. |
| private final SimpleDateFormat | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private | SuffixRotator(final AccessControlContext acc, final String originalSuffix, final String datePattern, final String compressionSuffix, final SuffixRotator.
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private boolean | |
| private boolean | |
| pack-priv String | Returns: the compression suffix or an empty stringThe compression suffix or an empty string |
| pack-priv SuffixRotator. | |
| pack-priv String | Returns: the date pattern or an empty stringThe date format pattern for the suffix or an empty string. |
| private void | |
| private InputStream | |
| private OutputStream | |
| pack-priv static SuffixRotator | Returns: the file rotator used to determine the suffix parts and rotate the file.the suffix to parse suffix)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Parses a suffix into possible parts for rotation. |
| pack-priv void | rotate(final ErrorManager
the error manager used to report errors to, if errorManager, final Path null an IOException will
be thrownthe file to be rotated source, final String the suffix to append to the rotated file. suffix)Rotates the file to a new file appending the suffix to the target. |
| pack-priv void | rotate(final ErrorManager
the error manager used to report errors to, if errorManager, final Path null an IOException will
be thrownthe file to be rotated source, final int the number of backups to keep maxBackupIndex)Rotates the file to a new file appending the suffix to the target. |
| pack-priv void | rotate(final ErrorManager
the error manager used to report errors to, if errorManager, final Path null an IOException will
be thrownthe file to be rotated source, final String the optional suffix to append to the file before the index and optional compression suffix suffix, final int the number of backups to keep maxBackupIndex)Rotates the file to a new file appending the suffix to the target. |
| public String |
| acc | back to summary |
|---|---|
| private final AccessControlContext acc
References Deprecated
See corresponding docs for further information. | |
| compressionSuffix | back to summary |
|---|---|
| private final String compressionSuffix | |
| compressionType | back to summary |
|---|---|
| private final SuffixRotator. | |
| datePattern | back to summary |
|---|---|
| private final String datePattern | |
| EMPTY | back to summary |
|---|---|
| pack-priv static final SuffixRotator EMPTY An empty rotation suffix. | |
| formatter | back to summary |
|---|---|
| private final SimpleDateFormat formatter | |
| originalSuffix | back to summary |
|---|---|
| private final String originalSuffix | |
| SuffixRotator | back to summary |
|---|---|
| private SuffixRotator(final AccessControlContext acc, final String originalSuffix, final String datePattern, final String compressionSuffix, final SuffixRotator. References Deprecated
See corresponding docs for further information. | |
| archiveGzip | back to summary |
|---|---|
| private void archiveGzip(final Path source, final Path target) throws IOException | |
| archiveZip | back to summary |
|---|---|
| private void archiveZip(final Path source, final Path target) throws IOException | |
| deleteFile | back to summary |
|---|---|
private boolean deleteFile(final Path path) throws IOException
| |
| fileExists | back to summary |
|---|---|
| private boolean fileExists(final Path file) | |
| getCompressionSuffix | back to summary |
|---|---|
| pack-priv String getCompressionSuffix() The compression suffix or an empty string
| |
| getCompressionType | back to summary |
|---|---|
| pack-priv SuffixRotator. The compression type.
| |
| getDatePattern | back to summary |
|---|---|
| pack-priv String getDatePattern() The date format pattern for the suffix or an empty string.
| |
| move | back to summary |
|---|---|
| private void move(final ErrorManager errorManager, final Path src, final Path target) | |
| newInputStream | back to summary |
|---|---|
| private InputStream newInputStream(final Path file) throws IOException | |
| newOutputStream | back to summary |
|---|---|
| private OutputStream newOutputStream(final Path file) throws IOException | |
| parse | back to summary |
|---|---|
| pack-priv static SuffixRotator parse(final AccessControlContext acc, final String suffix)
References Deprecated
See corresponding docs for further information. Parses a suffix into possible parts for rotation.
| |
| rotate | back to summary |
|---|---|
| pack-priv void rotate(final ErrorManager errorManager, final Path source, final String suffix) Rotates the file to a new file appending the suffix to the target. The compression suffix will automatically be appended to target file if compression is being used. If compression is not being used the file is just moved replacing the target file if it already exists.
| |
| rotate | back to summary |
|---|---|
| pack-priv void rotate(final ErrorManager errorManager, final Path source, final int maxBackupIndex) Rotates the file to a new file appending the suffix to the target. If a date suffix was specified the suffix will be added before the index or compression suffix. The current date will be used for the suffix.
If the
| |
| rotate | back to summary |
|---|---|
| pack-priv void rotate(final ErrorManager errorManager, final Path source, final String suffix, final int maxBackupIndex) Rotates the file to a new file appending the suffix to the target.
If the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SuffixRotator. | |
| public static final SuffixRotator. | |
| public static final SuffixRotator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SuffixRotator. | |
| public static SuffixRotator. |
| GZIP | back to summary |
|---|---|
| public static final SuffixRotator. | |
| NONE | back to summary |
|---|---|
| public static final SuffixRotator. | |
| ZIP | back to summary |
|---|---|
| public static final SuffixRotator. | |
| CompressionType | back to summary |
|---|---|
| private CompressionType() | |
| valueOf | back to summary |
|---|---|
| public static SuffixRotator. | |
| values | back to summary |
|---|---|
| public static SuffixRotator. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Boolean |
| file | back to summary |
|---|---|
| private final Path file | |
| DeleteFileAction | back to summary |
|---|---|
| private DeleteFileAction(final Path file) | |
| run | back to summary |
|---|---|
| public Boolean run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Boolean |
| file | back to summary |
|---|---|
| private final Path file | |
| FileExistsAction | back to summary |
|---|---|
| private FileExistsAction(final Path file) | |
| run | back to summary |
|---|---|
| public Boolean run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream |
| file | back to summary |
|---|---|
| private final Path file | |
| InputStreamAction | back to summary |
|---|---|
| private InputStreamAction(final Path file) | |
| run | back to summary |
|---|---|
| public InputStream run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ErrorManager | |
| private final Path | |
| private final Path |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Path |
| errorManager | back to summary |
|---|---|
| private final ErrorManager errorManager | |
| source | back to summary |
|---|---|
| private final Path source | |
| target | back to summary |
|---|---|
| private final Path target | |
| MoveFileAction | back to summary |
|---|---|
| private MoveFileAction(final ErrorManager errorManager, final Path source, final Path target) | |
| run | back to summary |
|---|---|
| public Path run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream |
| file | back to summary |
|---|---|
| private final Path file | |
| OutputStreamAction | back to summary |
|---|---|
| private OutputStreamAction(final Path file) | |
| run | back to summary |
|---|---|
| public OutputStream run() Implements java. Doc from java. Performs the computation. This method will be called by
| |