Package org.apache.log4j.rolling.helper
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 boolean
Stop on error. -
Constructor Summary
ConstructorsConstructorDescriptionCompositeAction
(List actions, boolean stopOnError) Construct a new composite action. -
Method Summary
Methods inherited from class org.apache.log4j.rolling.helper.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:
run
in interfaceRunnable
- Overrides:
run
in classActionBase
-
execute
Execute sequence of actions.- Specified by:
execute
in interfaceAction
- Specified by:
execute
in classActionBase
- Returns:
- true if all actions were successful.
- Throws:
IOException
- on IO error.
-