Package org.apache.log4j.rolling.helper
Class CompositeAction
- java.lang.Object
-
- org.apache.log4j.rolling.helper.ActionBase
-
- org.apache.log4j.rolling.helper.CompositeAction
-
- All Implemented Interfaces:
java.lang.Runnable
,Action
public class CompositeAction extends ActionBase
A group of Actions to be executed in sequence.
-
-
Field Summary
Fields Modifier and Type Field Description private Action[]
actions
Actions to perform.private boolean
stopOnError
Stop on error.
-
Constructor Summary
Constructors Constructor Description CompositeAction(java.util.List actions, boolean stopOnError)
Construct a new composite action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
Execute sequence of actions.void
run()
-
Methods inherited from class org.apache.log4j.rolling.helper.ActionBase
close, isComplete, reportException
-
-
-
-
Field Detail
-
actions
private final Action[] actions
Actions to perform.
-
stopOnError
private final boolean stopOnError
Stop on error.
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classActionBase
-
execute
public boolean execute() throws java.io.IOException
Execute sequence of actions.- Specified by:
execute
in interfaceAction
- Specified by:
execute
in classActionBase
- Returns:
- true if all actions were successful.
- Throws:
java.io.IOException
- on IO error.
-
-