Enum EndpointStateMachine.EndPointStates
java.lang.Object
java.lang.Enum<EndpointStateMachine.EndPointStates>
org.apache.hadoop.ozone.container.common.statemachine.EndpointStateMachine.EndPointStates
- All Implemented Interfaces:
Serializable,Comparable<EndpointStateMachine.EndPointStates>
- Enclosing class:
EndpointStateMachine
public static enum EndpointStateMachine.EndPointStates
extends Enum<EndpointStateMachine.EndPointStates>
States that an Endpoint can be in.
This is a sorted list of states that EndPoint will traverse.
getNextState() will move from FIRST to LAST.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the next logical state that endPoint should move to.Returns the enum constant of this type with the specified name.static EndpointStateMachine.EndPointStates[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GETVERSION
-
REGISTER
-
HEARTBEAT
-
SHUTDOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getNextState
Returns the next logical state that endPoint should move to. The next state is computed by adding 1 to the current state.- Returns:
- NextState.
-