Enum Class ClusterStatus

java.lang.Object
java.lang.Enum<ClusterStatus>
com.netflix.genie.common.dto.ClusterStatus
All Implemented Interfaces:
Serializable, Comparable<ClusterStatus>, Constable

public enum ClusterStatus extends Enum<ClusterStatus>
The possible statuses for a cluster.
  • Enum Constant Details

    • UP

      public static final ClusterStatus UP
      Cluster is UP, and accepting jobs.
    • OUT_OF_SERVICE

      public static final ClusterStatus OUT_OF_SERVICE
      Cluster may be running, but not accepting job submissions.
    • TERMINATED

      public static final ClusterStatus TERMINATED
      Cluster is no-longer running, and is terminated.
  • Method Details

    • values

      public static ClusterStatus[] 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

      public static ClusterStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • parse

      public static ClusterStatus parse(String value) throws GeniePreconditionException
      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