Package com.netflix.genie.common.dto
Enum Class ClusterStatus
- All Implemented Interfaces:
Serializable
,Comparable<ClusterStatus>
,Constable
The possible statuses for a cluster.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCluster may be running, but not accepting job submissions.Cluster is no-longer running, and is terminated.Cluster is UP, and accepting jobs. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterStatus
Parse cluster status.static ClusterStatus
Returns the enum constant of this class with the specified name.static ClusterStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UP
Cluster is UP, and accepting jobs. -
OUT_OF_SERVICE
Cluster may be running, but not accepting job submissions. -
TERMINATED
Cluster is no-longer running, and is terminated.
-
-
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
-
parse
Parse cluster status.- Parameters:
value
- string to parse/convert into cluster status- Returns:
- UP, OUT_OF_SERVICE, TERMINATED if match
- Throws:
GeniePreconditionException
- on invalid value
-