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:
- Action, Runnable
- public class CompositeAction
- extends ActionBase
A group of Actions to be executed in sequence.
- Since:
- 1.3
- Author:
- Curt Arnold
Method Summary |
boolean |
execute()
Execute sequence of actions. |
void |
run()
{@inheritDoc} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeAction
public CompositeAction(List actions,
boolean stopOnError,
ULogger logger)
- 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.logger
- logger, may be null.
run
public void run()
- {@inheritDoc}
- Overrides:
run
in class ActionBase
execute
public boolean execute()
throws IOException
- Execute sequence of actions.
- Overrides:
execute
in class ActionBase
- Returns:
- true if all actions were successful.
- Throws:
IOException
- on IO error.
Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.