Package io.trino.execution
Enum FailureInjector.InjectedFailureType
- java.lang.Object
-
- java.lang.Enum<FailureInjector.InjectedFailureType>
-
- io.trino.execution.FailureInjector.InjectedFailureType
-
- All Implemented Interfaces:
Serializable,Comparable<FailureInjector.InjectedFailureType>
- Enclosing class:
- FailureInjector
public static enum FailureInjector.InjectedFailureType extends Enum<FailureInjector.InjectedFailureType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TASK_FAILURETASK_GET_RESULTS_REQUEST_FAILURETASK_GET_RESULTS_REQUEST_TIMEOUTTASK_MANAGEMENT_REQUEST_FAILURETASK_MANAGEMENT_REQUEST_TIMEOUT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FailureInjector.InjectedFailureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FailureInjector.InjectedFailureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TASK_MANAGEMENT_REQUEST_FAILURE
public static final FailureInjector.InjectedFailureType TASK_MANAGEMENT_REQUEST_FAILURE
-
TASK_MANAGEMENT_REQUEST_TIMEOUT
public static final FailureInjector.InjectedFailureType TASK_MANAGEMENT_REQUEST_TIMEOUT
-
TASK_GET_RESULTS_REQUEST_FAILURE
public static final FailureInjector.InjectedFailureType TASK_GET_RESULTS_REQUEST_FAILURE
-
TASK_GET_RESULTS_REQUEST_TIMEOUT
public static final FailureInjector.InjectedFailureType TASK_GET_RESULTS_REQUEST_TIMEOUT
-
TASK_FAILURE
public static final FailureInjector.InjectedFailureType TASK_FAILURE
-
-
Method Detail
-
values
public static FailureInjector.InjectedFailureType[] 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 (FailureInjector.InjectedFailureType c : FailureInjector.InjectedFailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FailureInjector.InjectedFailureType 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
-
-