Log4j 1.3alpha-7

org.apache.log4j.rolling.helper
Class CompositeAction

java.lang.Object
  extended byorg.apache.log4j.rolling.helper.ActionBase
      extended byorg.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

Constructor Summary
CompositeAction(List actions, boolean stopOnError, ULogger logger)
          Construct a new composite action.
 
Method Summary
 boolean execute()
          Execute sequence of actions.
 void run()
          
 
Methods inherited from class org.apache.log4j.rolling.helper.ActionBase
close, isComplete, reportException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

run

public void run()

Specified by:
run in interface Runnable
Overrides:
run in class ActionBase

execute

public boolean execute()
                throws IOException
Execute sequence of actions.

Specified by:
execute in interface Action
Specified by:
execute in class ActionBase
Returns:
true if all actions were successful.
Throws:
IOException - on IO error.

Log4j 1.3alpha-7

Copyright 2000-2005 Apache Software Foundation.