Enum Class SubClusterState

java.lang.Object
java.lang.Enum<SubClusterState>
org.apache.hadoop.yarn.server.federation.store.records.SubClusterState
All Implemented Interfaces:
Serializable, Comparable<SubClusterState>, Constable

@Private @Unstable public enum SubClusterState extends Enum<SubClusterState>

State of a SubCluster.

  • Enum Constant Details

    • SC_NEW

      public static final SubClusterState SC_NEW
      Newly registered subcluster, before the first heartbeat.
    • SC_RUNNING

      public static final SubClusterState SC_RUNNING
      Subcluster is registered and the RM sent a heartbeat recently.
    • SC_UNHEALTHY

      public static final SubClusterState SC_UNHEALTHY
      Subcluster is unhealthy.
    • SC_DECOMMISSIONING

      public static final SubClusterState SC_DECOMMISSIONING
      Subcluster is in the process of being out of service.
    • SC_DECOMMISSIONED

      public static final SubClusterState SC_DECOMMISSIONED
      Subcluster is out of service.
    • SC_LOST

      public static final SubClusterState SC_LOST
      RM has not sent a heartbeat for some configured time threshold.
    • SC_UNREGISTERED

      public static final SubClusterState SC_UNREGISTERED
      Subcluster has unregistered.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Method Details

    • values

      public static SubClusterState[] 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 SubClusterState 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
    • isUsable

      public boolean isUsable()
    • isActive

      public boolean isActive()
    • isFinal

      public boolean isFinal()
    • fromString

      public static SubClusterState fromString(String state)
      Convert a string into SubClusterState.
      Parameters:
      state - the string to convert in SubClusterState
      Returns:
      the respective SubClusterState