Enum Class EventType

java.lang.Object
java.lang.Enum<EventType>
org.apache.hadoop.hbase.executor.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>, Constable

@Private public enum EventType extends Enum<EventType>
List of all HBase event handler types.

Event types are named by a convention: event type names specify the component from which the event originated and then where its destined -- e.g. RS_ZK_ prefix means the event came from a regionserver destined for zookeeper -- and then what the even is; e.g. REGION_OPENING.

We give the enums indices so we can add types later and keep them grouped together rather than have to add them always to the end as we would have to if we used raw enum ordinals.

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Messages originating from Client to Master.
    C_M_ADD_FAMILY
    Client asking Master to add family to table.
    Messages originating from Client to Master.
    C_M_CREATE_TABLE
    Client asking Master to create a table.
    Messages originating from Client to Master.
    C_M_DELETE_FAMILY
    Client asking Master to delete family of table.
    Messages originating from Client to Master.
    C_M_DELETE_TABLE
    Client asking Master to delete a table.
    Messages originating from Client to Master.
    C_M_DISABLE_TABLE
    Client asking Master to disable a table.
    Messages originating from Client to Master.
    C_M_ENABLE_TABLE
    Client asking Master to enable a table.
    Messages originating from Client to Master.
    C_M_MERGE_REGION
    Client asking Master to merge regions.
    Messages originating from Client to Master.
    C_M_MODIFY_FAMILY
    Client asking Master to modify family of table.
    Messages originating from Client to Master.
    C_M_MODIFY_TABLE
    Client asking Master to modify a table.
    Messages originating from Client to Master.
    C_M_RESTORE_SNAPSHOT
    Client asking Master to restore a snapshot.
    Messages originating from Client to Master.
    C_M_SNAPSHOT_TABLE
    Client asking Master to snapshot an offline table.
    Master controlled events to be executed on the master.
    M_LOG_REPLAY
    Master is processing log replay of failed region server
    Master controlled events to be executed on the master.
    M_MASTER_RECOVERY
    Master is processing recovery of regions found in ZK RIT
    Master controlled events to be executed on the master.
    M_META_SERVER_SHUTDOWN
    Master is processing shutdown of RS hosting a meta region (-ROOT- or hbase:meta).
    Messages originating from Master to RS.
    M_RS_CLOSE_META
    Master asking RS to close meta.
    Messages originating from Master to RS.
    M_RS_CLOSE_REGION
    Master asking RS to close a region.
    Messages originating from Master to RS.
    M_RS_CLOSE_ROOT
    Master asking RS to close root.
    Messages originating from Master to RS.
    M_RS_OPEN_META
    Master asking RS to open meta.
    Messages originating from Master to RS.
    M_RS_OPEN_PRIORITY_REGION
    Master asking RS to open a priority region.
    Messages originating from Master to RS.
    M_RS_OPEN_REGION
    Master asking RS to open a region.
    Messages originating from Master to RS.
    M_RS_OPEN_ROOT
    Master asking RS to open root.
    Messages originating from Master to RS.
    M_RS_SWITCH_RPC_THROTTLE
    Master asking RS to switch rpc throttle state.
    Master controlled events to be executed on the master M_SERVER_SHUTDOWN Master is processing shutdown of a RS
    M_ZK_REGION_CLOSING Master adds this region as closing in ZK
    M_ZK_REGION_OFFLINE Master adds this region as offline in ZK
    RS claim replication queue.
    RS_CLAIM_REPLICATION_QUEUE
    RS compacted files discharger
    RS_COMPACTED_FILES_DISCHARGER
    RS flush regions.
    RS_FLUSH_OPERATIONS
    RS wal recovery work items (splitting wals) to be executed on the RS.
    RS_LOG_REPLAY
    RS controlled events to be executed on the RS.
    RS_PARALLEL_SEEK
    RS refresh peer.
    RS_REFRESH_PEER
    RS flush triggering from secondary region replicas to primary region replica.
    RS replay sync replication wal.
    RS_REPLAY_SYNC_REPLICATION_WAL
    RS snapshot regions.
    RS_SNAPSHOT_REGIONS
    RS verify snapshot.
    RS_VERIFY_SNAPSHOT
    RS_ZK_REGION_CLOSED
    RS has finished closing a region.
    RS_ZK_REGION_FAILED_OPEN
    RS failed to open a region.
    RS_ZK_REGION_MERGE
    RS region merge has completed and is notifying the master.
    RS_ZK_REGION_MERGING
    RS has started merging regions after master says it's ok to move on.
    RS_ZK_REGION_OPENED
    RS has finished opening a region.
    RS_ZK_REGION_OPENING
    RS is in process of opening a region.
    RS_ZK_REGION_SPLIT
    RS split has completed and is notifying the master.
    RS_ZK_REGION_SPLITTING
    RS has started a region split after master says it's ok to move on.
    RS_ZK_REQUEST_REGION_MERGE
    RS has requested to merge two regions.
    RS_ZK_REQUEST_REGION_SPLIT
    RS has requested to split a region.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final ExecutorType
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    EventType(int code, ExecutorType executor)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static EventType
    get(int code)
     
    int
     
    (package private) ExecutorType
     
    static EventType
    Returns the enum constant of this class with the specified name.
    static EventType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • RS_ZK_REGION_CLOSED

      public static final EventType RS_ZK_REGION_CLOSED
      RS_ZK_REGION_CLOSED
      RS has finished closing a region.
    • RS_ZK_REGION_OPENING

      public static final EventType RS_ZK_REGION_OPENING
      RS_ZK_REGION_OPENING
      RS is in process of opening a region.
    • RS_ZK_REGION_OPENED

      public static final EventType RS_ZK_REGION_OPENED
      RS_ZK_REGION_OPENED
      RS has finished opening a region.
    • RS_ZK_REGION_SPLITTING

      public static final EventType RS_ZK_REGION_SPLITTING
      RS_ZK_REGION_SPLITTING
      RS has started a region split after master says it's ok to move on.
    • RS_ZK_REGION_SPLIT

      public static final EventType RS_ZK_REGION_SPLIT
      RS_ZK_REGION_SPLIT
      RS split has completed and is notifying the master.
    • RS_ZK_REGION_FAILED_OPEN

      public static final EventType RS_ZK_REGION_FAILED_OPEN
      RS_ZK_REGION_FAILED_OPEN
      RS failed to open a region.
    • RS_ZK_REGION_MERGING

      public static final EventType RS_ZK_REGION_MERGING
      RS_ZK_REGION_MERGING
      RS has started merging regions after master says it's ok to move on.
    • RS_ZK_REGION_MERGED

      public static final EventType RS_ZK_REGION_MERGED
      RS_ZK_REGION_MERGE
      RS region merge has completed and is notifying the master.
    • RS_ZK_REQUEST_REGION_SPLIT

      RS_ZK_REQUEST_REGION_SPLIT
      RS has requested to split a region. This is to notify master and check with master if the region is in a state good to split.
    • RS_ZK_REQUEST_REGION_MERGE

      RS_ZK_REQUEST_REGION_MERGE
      RS has requested to merge two regions. This is to notify master and check with master if two regions is in states good to merge.
    • M_RS_OPEN_REGION

      public static final EventType M_RS_OPEN_REGION
      Messages originating from Master to RS.
      M_RS_OPEN_REGION
      Master asking RS to open a region.
    • M_RS_OPEN_ROOT

      public static final EventType M_RS_OPEN_ROOT
      Messages originating from Master to RS.
      M_RS_OPEN_ROOT
      Master asking RS to open root.
    • M_RS_OPEN_META

      public static final EventType M_RS_OPEN_META
      Messages originating from Master to RS.
      M_RS_OPEN_META
      Master asking RS to open meta.
    • M_RS_CLOSE_REGION

      public static final EventType M_RS_CLOSE_REGION
      Messages originating from Master to RS.
      M_RS_CLOSE_REGION
      Master asking RS to close a region.
    • M_RS_CLOSE_ROOT

      public static final EventType M_RS_CLOSE_ROOT
      Messages originating from Master to RS.
      M_RS_CLOSE_ROOT
      Master asking RS to close root.
    • M_RS_CLOSE_META

      public static final EventType M_RS_CLOSE_META
      Messages originating from Master to RS.
      M_RS_CLOSE_META
      Master asking RS to close meta.
    • M_RS_OPEN_PRIORITY_REGION

      public static final EventType M_RS_OPEN_PRIORITY_REGION
      Messages originating from Master to RS.
      M_RS_OPEN_PRIORITY_REGION
      Master asking RS to open a priority region.
    • M_RS_SWITCH_RPC_THROTTLE

      public static final EventType M_RS_SWITCH_RPC_THROTTLE
      Messages originating from Master to RS.
      M_RS_SWITCH_RPC_THROTTLE
      Master asking RS to switch rpc throttle state.
    • C_M_MERGE_REGION

      public static final EventType C_M_MERGE_REGION
      Messages originating from Client to Master.
      C_M_MERGE_REGION
      Client asking Master to merge regions.
    • C_M_DELETE_TABLE

      public static final EventType C_M_DELETE_TABLE
      Messages originating from Client to Master.
      C_M_DELETE_TABLE
      Client asking Master to delete a table.
    • C_M_DISABLE_TABLE

      public static final EventType C_M_DISABLE_TABLE
      Messages originating from Client to Master.
      C_M_DISABLE_TABLE
      Client asking Master to disable a table.
    • C_M_ENABLE_TABLE

      public static final EventType C_M_ENABLE_TABLE
      Messages originating from Client to Master.
      C_M_ENABLE_TABLE
      Client asking Master to enable a table.
    • C_M_MODIFY_TABLE

      public static final EventType C_M_MODIFY_TABLE
      Messages originating from Client to Master.
      C_M_MODIFY_TABLE
      Client asking Master to modify a table.
    • C_M_ADD_FAMILY

      public static final EventType C_M_ADD_FAMILY
      Messages originating from Client to Master.
      C_M_ADD_FAMILY
      Client asking Master to add family to table.
    • C_M_DELETE_FAMILY

      public static final EventType C_M_DELETE_FAMILY
      Messages originating from Client to Master.
      C_M_DELETE_FAMILY
      Client asking Master to delete family of table.
    • C_M_MODIFY_FAMILY

      public static final EventType C_M_MODIFY_FAMILY
      Messages originating from Client to Master.
      C_M_MODIFY_FAMILY
      Client asking Master to modify family of table.
    • C_M_CREATE_TABLE

      public static final EventType C_M_CREATE_TABLE
      Messages originating from Client to Master.
      C_M_CREATE_TABLE
      Client asking Master to create a table.
    • C_M_SNAPSHOT_TABLE

      public static final EventType C_M_SNAPSHOT_TABLE
      Messages originating from Client to Master.
      C_M_SNAPSHOT_TABLE
      Client asking Master to snapshot an offline table.
    • C_M_RESTORE_SNAPSHOT

      public static final EventType C_M_RESTORE_SNAPSHOT
      Messages originating from Client to Master.
      C_M_RESTORE_SNAPSHOT
      Client asking Master to restore a snapshot.
    • M_ZK_REGION_OFFLINE

      public static final EventType M_ZK_REGION_OFFLINE
      M_ZK_REGION_OFFLINE Master adds this region as offline in ZK
    • M_ZK_REGION_CLOSING

      public static final EventType M_ZK_REGION_CLOSING
      M_ZK_REGION_CLOSING Master adds this region as closing in ZK
    • M_SERVER_SHUTDOWN

      public static final EventType M_SERVER_SHUTDOWN
      Master controlled events to be executed on the master M_SERVER_SHUTDOWN Master is processing shutdown of a RS
    • M_META_SERVER_SHUTDOWN

      public static final EventType M_META_SERVER_SHUTDOWN
      Master controlled events to be executed on the master.
      M_META_SERVER_SHUTDOWN
      Master is processing shutdown of RS hosting a meta region (-ROOT- or hbase:meta).
    • M_MASTER_RECOVERY

      public static final EventType M_MASTER_RECOVERY
      Master controlled events to be executed on the master.
      M_MASTER_RECOVERY
      Master is processing recovery of regions found in ZK RIT
    • M_LOG_REPLAY

      public static final EventType M_LOG_REPLAY
      Master controlled events to be executed on the master.
      M_LOG_REPLAY
      Master is processing log replay of failed region server
    • RS_PARALLEL_SEEK

      public static final EventType RS_PARALLEL_SEEK
      RS controlled events to be executed on the RS.
      RS_PARALLEL_SEEK
    • RS_LOG_REPLAY

      public static final EventType RS_LOG_REPLAY
      RS wal recovery work items (splitting wals) to be executed on the RS.
      RS_LOG_REPLAY
    • RS_REGION_REPLICA_FLUSH

      public static final EventType RS_REGION_REPLICA_FLUSH
      RS flush triggering from secondary region replicas to primary region replica.
      RS_REGION_REPLICA_FLUSH
    • RS_COMPACTED_FILES_DISCHARGER

      RS compacted files discharger
      RS_COMPACTED_FILES_DISCHARGER
    • RS_REFRESH_PEER

      public static final EventType RS_REFRESH_PEER
      RS refresh peer.
      RS_REFRESH_PEER
    • RS_REPLAY_SYNC_REPLICATION_WAL

      RS replay sync replication wal.
      RS_REPLAY_SYNC_REPLICATION_WAL
    • RS_CLAIM_REPLICATION_QUEUE

      RS claim replication queue.
      RS_CLAIM_REPLICATION_QUEUE
    • RS_SNAPSHOT_REGIONS

      public static final EventType RS_SNAPSHOT_REGIONS
      RS snapshot regions.
      RS_SNAPSHOT_REGIONS
    • RS_VERIFY_SNAPSHOT

      public static final EventType RS_VERIFY_SNAPSHOT
      RS verify snapshot.
      RS_VERIFY_SNAPSHOT
    • RS_FLUSH_REGIONS

      public static final EventType RS_FLUSH_REGIONS
      RS flush regions.
      RS_FLUSH_OPERATIONS
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static EventType[] 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 EventType 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
    • getCode

      public int getCode()
    • get

      public static EventType get(int code)
    • getExecutorServiceType