Package org.apache.log4j.rolling.helper
Class ActionBase
- java.lang.Object
-
- org.apache.log4j.rolling.helper.ActionBase
-
- All Implemented Interfaces:
java.lang.Runnable,Action
- Direct Known Subclasses:
CompositeAction,FileRenameAction,GZCompressAction,ZipCompressAction
public abstract class ActionBase extends java.lang.Object implements Action
Abstract base class for implementations of Action.
-
-
Field Summary
Fields Modifier and Type Field Description private booleancompleteIs action complete.private booleaninterruptedIs action interrupted.
-
Constructor Summary
Constructors Modifier Constructor Description protectedActionBase()Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()Cancels the action if not already initialized or waits till completion.abstract booleanexecute()Perform action.booleanisComplete()Tests if the action is complete.protected voidreportException(java.lang.Exception ex)Capture exception.voidrun()
-
-
-
Method Detail
-
execute
public abstract boolean execute() throws java.io.IOExceptionPerform action.
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
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:
isCompletein interfaceAction- Returns:
- true if action is complete.
-
reportException
protected void reportException(java.lang.Exception ex)
Capture exception.- Parameters:
ex- exception.
-
-