Package org.apache.flink.core.failure
Enum FailureEnricher.Context.FailureType
- java.lang.Object
-
- java.lang.Enum<FailureEnricher.Context.FailureType>
-
- org.apache.flink.core.failure.FailureEnricher.Context.FailureType
-
- All Implemented Interfaces:
Serializable,Comparable<FailureEnricher.Context.FailureType>
- Enclosing interface:
- FailureEnricher.Context
public static enum FailureEnricher.Context.FailureType extends Enum<FailureEnricher.Context.FailureType>
Type of failure.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GLOBALThe failure has occurred in the scheduler context and can't be tracked back to a particular task.TASKThe failure has been reported by a particular task.TASK_MANAGERThe TaskManager has non-gracefully disconnected from the JobMaster or we have not received heartbeats for theconfigured timeout.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FailureEnricher.Context.FailureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FailureEnricher.Context.FailureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOBAL
public static final FailureEnricher.Context.FailureType GLOBAL
The failure has occurred in the scheduler context and can't be tracked back to a particular task.
-
TASK
public static final FailureEnricher.Context.FailureType TASK
The failure has been reported by a particular task.
-
TASK_MANAGER
public static final FailureEnricher.Context.FailureType TASK_MANAGER
The TaskManager has non-gracefully disconnected from the JobMaster or we have not received heartbeats for theconfigured timeout.
-
-
Method Detail
-
values
public static FailureEnricher.Context.FailureType[] 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 (FailureEnricher.Context.FailureType c : FailureEnricher.Context.FailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FailureEnricher.Context.FailureType 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 nameNullPointerException- if the argument is null
-
-