Package com.yahoo.vdslib.state
Enum Class State
- All Implemented Interfaces:
Serializable,Comparable<State>,Constable
Defines legal states for various uses. Split this into its own class such
that we can easily see what states are legal to use in what situations.
They double as disk states and node states nodes report they are in, and
wanted states set external sources.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StatebooleanbooleantoString()booleanbooleanbooleanbooleanvalidWantedNodeState(NodeType type) static StateReturns the enum constant of this class with the specified name.static State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
MAINTENANCE
-
DOWN
-
STOPPING
-
INITIALIZING
-
RETIRED
-
UP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
-
serialize
-
validClusterState
public boolean validClusterState() -
validReportedNodeState
-
validWantedNodeState
-
validCurrentNodeState
-
maySetWantedStateForThisNodeState
-
oneOf
-
toString
-