Package com.palantir.atlasdb.factory
Enum TransactionManagerConsistencyResult.ConsistencyState
- java.lang.Object
-
- java.lang.Enum<TransactionManagerConsistencyResult.ConsistencyState>
-
- com.palantir.atlasdb.factory.TransactionManagerConsistencyResult.ConsistencyState
-
- All Implemented Interfaces:
Serializable
,Comparable<TransactionManagerConsistencyResult.ConsistencyState>
- Enclosing interface:
- TransactionManagerConsistencyResult
public static enum TransactionManagerConsistencyResult.ConsistencyState extends Enum<TransactionManagerConsistencyResult.ConsistencyState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSISTENT
Indicates that we did not detect any inconsistencies in the transaction manager.INDETERMINATE
Indicates that we don't know whether the transaction manager is in a consistent state or not.TERMINAL
Indicates that the transaction manager is in a state that is inconsistent, and automated recovery is generally not possible.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
severity()
static TransactionManagerConsistencyResult.ConsistencyState
valueOf(String name)
Returns the enum constant of this type with the specified name.static TransactionManagerConsistencyResult.ConsistencyState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TERMINAL
public static final TransactionManagerConsistencyResult.ConsistencyState TERMINAL
Indicates that the transaction manager is in a state that is inconsistent, and automated recovery is generally not possible. Typically, to avoid further inconsistencies, AtlasDB will refuse to serve requests in this state; manual action will be needed.
-
INDETERMINATE
public static final TransactionManagerConsistencyResult.ConsistencyState INDETERMINATE
Indicates that we don't know whether the transaction manager is in a consistent state or not.
-
CONSISTENT
public static final TransactionManagerConsistencyResult.ConsistencyState CONSISTENT
Indicates that we did not detect any inconsistencies in the transaction manager.
-
-
Method Detail
-
values
public static TransactionManagerConsistencyResult.ConsistencyState[] 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 (TransactionManagerConsistencyResult.ConsistencyState c : TransactionManagerConsistencyResult.ConsistencyState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionManagerConsistencyResult.ConsistencyState 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
-
severity
public int severity()
-
-