Enum Class ServerState

java.lang.Object
java.lang.Enum<ServerState>
org.apache.hadoop.hbase.master.assignment.ServerState
All Implemented Interfaces:
Serializable, Comparable<ServerState>, Constable

@Private public enum ServerState extends Enum<ServerState>
Server State.
  • Enum Constant Details

    • ONLINE

      public static final ServerState ONLINE
      Initial state. Available.
    • CRASHED

      public static final ServerState CRASHED
      Indicate that the server has crashed, i.e., we have already scheduled a SCP for it.
    • SPLITTING_META

      public static final ServerState SPLITTING_META
      Only server which carries meta can have this state. We will split wal for meta and then assign meta first before splitting other wals.
    • SPLITTING_META_DONE

      public static final ServerState SPLITTING_META_DONE
      Indicate that the meta splitting is done. We need this state so that the UnassignProcedure for meta can safely quit. See the comments in UnassignProcedure.remoteCallFailed for more details.
    • SPLITTING

      public static final ServerState SPLITTING
      Server expired/crashed. Currently undergoing WAL splitting.
    • OFFLINE

      public static final ServerState OFFLINE
      WAL splitting done. This state will be used to tell the UnassignProcedure that it can safely quit. See the comments in UnassignProcedure.remoteCallFailed for more details.
  • Constructor Details

  • Method Details

    • values

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