org.apache.commons.pipeline.driver
Enum FaultTolerance

java.lang.Object
  extended by java.lang.Enum<FaultTolerance>
      extended by org.apache.commons.pipeline.driver.FaultTolerance
All Implemented Interfaces:
Serializable, Comparable<FaultTolerance>

public enum FaultTolerance
extends Enum<FaultTolerance>

Stores the failure tolerance flag for a worker thread. If faultTolerance is set to CHECKED, StageExceptions thrown by the Stage.process(Object) method will not interrupt queue processing, but will simply be logged with a severity of ERROR. If faultTolerance is set to ALL, runtime exceptions will also be logged and otherwise ignored.


Enum Constant Summary
ALL
          If faultTolerance is set to ALL, runtime exceptions will be logged and otherwise ignored.
CHECKED
          StageExceptions thrown by the Stage.process(Object) method will not interrupt queue processing, but will simply be logged with a severity of ERROR.
NONE
          StageExceptions thrown by the Stage.process(Object) method will interrupt queue processing and will be logged with a severity of ERROR.
 
Method Summary
static FaultTolerance valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FaultTolerance[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final FaultTolerance NONE
StageExceptions thrown by the Stage.process(Object) method will interrupt queue processing and will be logged with a severity of ERROR.


CHECKED

public static final FaultTolerance CHECKED
StageExceptions thrown by the Stage.process(Object) method will not interrupt queue processing, but will simply be logged with a severity of ERROR.


ALL

public static final FaultTolerance ALL
If faultTolerance is set to ALL, runtime exceptions will be logged and otherwise ignored.

Method Detail

values

public static FaultTolerance[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FaultTolerance c : FaultTolerance.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FaultTolerance valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.