|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.x4juli.global.components.AbstractComponent
org.x4juli.handlers.rolling.helper.AbstractAction
org.x4juli.handlers.rolling.helper.FileRenameAction
File rename action.
Logging API as a whole was originally done for Apache log4j. Juli is a port of main parts of that to complete the Java Logging APIs. All credits for initial idea, design, implementation, documentation belong to the log4j crew. This file was originally published by Curt Arnold. Please use exclusively the appropriate mailing lists for questions, remarks and contribution.
| Field Summary | |
private java.io.File |
destination
Destination. |
private boolean |
renameEmptyFiles
If true, rename empty files, otherwise delete empty files. |
private java.io.File |
source
Source. |
| Fields inherited from class org.x4juli.handlers.rolling.helper.AbstractAction |
|
| Fields inherited from class org.x4juli.global.components.AbstractComponent |
manager, repository |
| Constructor Summary | |
FileRenameAction(java.io.File src,
java.io.File dst,
boolean renameEmptyFiles)
Creates an FileRenameAction. |
|
| Method Summary | |
boolean |
execute()
Rename file. |
static boolean |
execute(java.io.File source,
java.io.File destination,
boolean renameEmptyFiles)
Rename file. |
| Methods inherited from class org.x4juli.handlers.rolling.helper.AbstractAction |
close, isComplete, reportException, run |
| Methods inherited from class org.x4juli.global.components.AbstractComponent |
getLogger, getLoggerRepository, getMessageProperties, getNonFloodingLogger, getProperty, getProperty, getProperty, getProperty, resetErrorCount, setObjectStore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final java.io.File source
private final java.io.File destination
private final boolean renameEmptyFiles
| Constructor Detail |
public FileRenameAction(java.io.File src,
java.io.File dst,
boolean renameEmptyFiles)
src - current file name.dst - new file name.renameEmptyFiles - if true, rename file even if empty, otherwise delete empty files.| Method Detail |
public static boolean execute(java.io.File source,
java.io.File destination,
boolean renameEmptyFiles)
source - current file name.destination - new file name.renameEmptyFiles - if true, rename file even if empty, otherwise delete empty files.
public boolean execute()
execute in interface Actionexecute in class AbstractAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||