Class AbstractAction
java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
- Direct Known Subclasses:
AbstractPathAction
,CommonsCompressAction
,CompositeAction
,FileRenameAction
,GzCompressAction
,ZipCompressAction
Abstract base class for implementations of Action.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
LOGGER
Allows subclasses access to the status logger without creating another instance.
-
-
Constructor Details
-
AbstractAction
protected AbstractAction()Constructor.
-
-
Method Details
-
execute
Performs action.- Specified by:
execute
in interfaceAction
- Returns:
- true if successful.
- Throws:
IOException
- if IO error.
-
run
public void run() -
close
public void close()Cancels the action if not already initialized or waits till completion. -
isComplete
public boolean isComplete()Tests if the action is complete.- Specified by:
isComplete
in interfaceAction
- Returns:
- true if action is complete.
-
isInterrupted
public boolean isInterrupted() -
reportException
Captures exception.- Parameters:
ex
- exception.
-