Package com.github.ambry.clustermap
Enum StateTransitionException.TransitionErrorCode
- java.lang.Object
-
- java.lang.Enum<StateTransitionException.TransitionErrorCode>
-
- com.github.ambry.clustermap.StateTransitionException.TransitionErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StateTransitionException.TransitionErrorCode>
- Enclosing class:
- StateTransitionException
public static enum StateTransitionException.TransitionErrorCode extends java.lang.Enum<StateTransitionException.TransitionErrorCode>
All types of error code that associate withStateTransitionException
. The error code is currently used by tests to determine location of exception. In production environment, if transition exception occurs, the message together with error code should be recorded in Helix log which helps us investigate failure cause.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BootstrapFailure
If bootstrap process fails at some point for specific replica.DeactivationFailure
If failure occurs during Standby-To-Inactive transition.DisconnectionFailure
If disconnection process fails on specific replica.HelixUpdateFailure
If updating cluster info in Helix fails at some point for specific replica.ReplicaNotFound
If replica is not present in Helix and not found on current node.ReplicaOperationFailure
If failure occurs during replica operation (i.e.StoreNotStarted
If store is not started and unavailable for specific operations.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StateTransitionException.TransitionErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StateTransitionException.TransitionErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ReplicaNotFound
public static final StateTransitionException.TransitionErrorCode ReplicaNotFound
If replica is not present in Helix and not found on current node.
-
ReplicaOperationFailure
public static final StateTransitionException.TransitionErrorCode ReplicaOperationFailure
If failure occurs during replica operation (i.e. replica addition/removal in StoreManager, ReplicationManager).
-
StoreNotStarted
public static final StateTransitionException.TransitionErrorCode StoreNotStarted
If store is not started and unavailable for specific operations.
-
BootstrapFailure
public static final StateTransitionException.TransitionErrorCode BootstrapFailure
If bootstrap process fails at some point for specific replica.
-
DeactivationFailure
public static final StateTransitionException.TransitionErrorCode DeactivationFailure
If failure occurs during Standby-To-Inactive transition.
-
DisconnectionFailure
public static final StateTransitionException.TransitionErrorCode DisconnectionFailure
If disconnection process fails on specific replica.
-
HelixUpdateFailure
public static final StateTransitionException.TransitionErrorCode HelixUpdateFailure
If updating cluster info in Helix fails at some point for specific replica.
-
-
Method Detail
-
values
public static StateTransitionException.TransitionErrorCode[] 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 (StateTransitionException.TransitionErrorCode c : StateTransitionException.TransitionErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StateTransitionException.TransitionErrorCode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-