Class AbstractAction
java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
- Direct Known Subclasses:
AbstractPathAction, CommonsCompressAction, CompositeAction, FileRenameAction, GzCompressAction, RollingFileManager.AsyncAction, ZipCompressAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIs action complete.private booleanIs action interrupted.protected static final LoggerAllows subclasses access to the status logger without creating another instance. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
Allows subclasses access to the status logger without creating another instance. -
complete
private boolean completeIs action complete. -
interrupted
private boolean interruptedIs action interrupted.
-
-
Constructor Details
-
AbstractAction
protected AbstractAction()Constructor.
-
-
Method Details
-
execute
Performs action.- Specified by:
executein interfaceAction- Returns:
- true if successful.
- Throws:
IOException- if IO error.
-
run
-
close
-
isComplete
public boolean isComplete()Tests if the action is complete.- Specified by:
isCompletein interfaceAction- Returns:
- true if action is complete.
-
isInterrupted
public boolean isInterrupted() -
reportException
-