Class CompositeAction
java.lang.Object
org.apache.log4j.rolling.helper.ActionBase
org.apache.log4j.rolling.helper.CompositeAction
A group of Actions to be executed in sequence.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Action[]Actions to perform.private final booleanStop on error. -
Constructor Summary
ConstructorsConstructorDescriptionCompositeAction(List actions, boolean stopOnError) Construct a new composite action. -
Method Summary
Methods inherited from class ActionBase
close, isComplete, reportException
-
Field Details
-
actions
Actions to perform. -
stopOnError
private final boolean stopOnErrorStop on error.
-
-
Constructor Details
-
CompositeAction
Construct a new composite action.- Parameters:
actions- list of actions, may not be null.stopOnError- if true, stop on the first false return value or exception.
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classActionBase
-
execute
Execute sequence of actions.- Specified by:
executein interfaceAction- Specified by:
executein classActionBase- Returns:
- true if all actions were successful.
- Throws:
IOException- on IO error.
-