Package org.apache.log4j.rolling.helper
Class ActionBase
java.lang.Object
org.apache.log4j.rolling.helper.ActionBase
- Direct Known Subclasses:
CompositeAction
,FileRenameAction
,GZCompressAction
,ZipCompressAction
Abstract base class for implementations of Action.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Is action complete.private boolean
Is action interrupted. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
complete
private boolean completeIs action complete. -
interrupted
private boolean interruptedIs action interrupted.
-
-
Constructor Details
-
ActionBase
protected ActionBase()Constructor.
-
-
Method Details
-
execute
Perform 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.
-
reportException
Capture exception.- Parameters:
ex
- exception.
-