@InterfaceAudience.Private public enum EventType extends Enum<EventType>
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.
| 枚举常量和说明 |
|---|
C_M_ADD_FAMILY
Messages originating from Client to Master.
|
C_M_CREATE_TABLE
Messages originating from Client to Master.
|
C_M_DELETE_FAMILY
Messages originating from Client to Master.
|
C_M_DELETE_TABLE
Messages originating from Client to Master.
|
C_M_DISABLE_TABLE
Messages originating from Client to Master.
|
C_M_ENABLE_TABLE
Messages originating from Client to Master.
|
C_M_MERGE_REGION
Messages originating from Client to Master.
|
C_M_MODIFY_FAMILY
Messages originating from Client to Master.
|
C_M_MODIFY_TABLE
Messages originating from Client to Master.
|
C_M_RESTORE_SNAPSHOT
Messages originating from Client to Master.
|
C_M_SNAPSHOT_TABLE
Messages originating from Client to Master.
|
M_LOG_REPLAY
Master controlled events to be executed on the master.
|
M_MASTER_RECOVERY
Master controlled events to be executed on the master.
|
M_META_SERVER_SHUTDOWN
Master controlled events to be executed on the master.
|
M_RS_CLOSE_META
Messages originating from Master to RS.
|
M_RS_CLOSE_REGION
Messages originating from Master to RS.
|
M_RS_CLOSE_ROOT
Messages originating from Master to RS.
|
M_RS_OPEN_META
Messages originating from Master to RS.
|
M_RS_OPEN_PRIORITY_REGION
Messages originating from Master to RS.
|
M_RS_OPEN_REGION
Messages originating from Master to RS.
|
M_RS_OPEN_ROOT
Messages originating from Master to RS.
|
M_SERVER_SHUTDOWN
Master controlled events to be executed on the master
M_SERVER_SHUTDOWN
Master is processing shutdown of a RS
|
M_ZK_REGION_CLOSING
M_ZK_REGION_CLOSING
Master adds this region as closing in ZK
|
M_ZK_REGION_OFFLINE
M_ZK_REGION_OFFLINE
Master adds this region as offline in ZK
|
RS_COMPACTED_FILES_DISCHARGER
RS compacted files discharger
RS_COMPACTED_FILES_DISCHARGER |
RS_LOG_REPLAY
RS wal recovery work items (splitting wals) to be executed on the RS.
|
RS_PARALLEL_SEEK
RS controlled events to be executed on the RS.
|
RS_REFRESH_PEER
RS refresh peer.
|
RS_REGION_REPLICA_FLUSH
RS flush triggering from secondary region replicas to primary region replica.
|
RS_ZK_REGION_CLOSED
RS_ZK_REGION_CLOSED
RS has finished closing a region. |
RS_ZK_REGION_FAILED_OPEN
RS_ZK_REGION_FAILED_OPEN
RS failed to open a region. |
RS_ZK_REGION_MERGED
RS_ZK_REGION_MERGE
RS region merge has completed and is notifying the master. |
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_OPENED
RS_ZK_REGION_OPENED
RS has finished opening a region. |
RS_ZK_REGION_OPENING
RS_ZK_REGION_OPENING
RS is in process of opening a region. |
RS_ZK_REGION_SPLIT
RS_ZK_REGION_SPLIT
RS split has completed and is notifying the master. |
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_REQUEST_REGION_MERGE
RS_ZK_REQUEST_REGION_MERGE
RS has requested to merge two regions. |
RS_ZK_REQUEST_REGION_SPLIT
RS_ZK_REQUEST_REGION_SPLIT
RS has requested to split a region. |
| 限定符和类型 | 方法和说明 |
|---|---|
static EventType |
get(int code) |
int |
getCode() |
boolean |
isOnlineSchemaChangeSupported() |
static EventType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static EventType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EventType RS_ZK_REGION_CLOSED
public static final EventType RS_ZK_REGION_OPENING
public static final EventType RS_ZK_REGION_OPENED
public static final EventType RS_ZK_REGION_SPLITTING
public static final EventType RS_ZK_REGION_SPLIT
public static final EventType RS_ZK_REGION_FAILED_OPEN
public static final EventType RS_ZK_REGION_MERGING
public static final EventType RS_ZK_REGION_MERGED
public static final EventType RS_ZK_REQUEST_REGION_SPLIT
public static final EventType RS_ZK_REQUEST_REGION_MERGE
public static final EventType M_RS_OPEN_REGION
public static final EventType M_RS_OPEN_ROOT
public static final EventType M_RS_OPEN_META
public static final EventType M_RS_CLOSE_REGION
public static final EventType M_RS_CLOSE_ROOT
public static final EventType M_RS_CLOSE_META
public static final EventType M_RS_OPEN_PRIORITY_REGION
public static final EventType C_M_MERGE_REGION
public static final EventType C_M_DELETE_TABLE
public static final EventType C_M_DISABLE_TABLE
public static final EventType C_M_ENABLE_TABLE
public static final EventType C_M_MODIFY_TABLE
public static final EventType C_M_ADD_FAMILY
public static final EventType C_M_DELETE_FAMILY
public static final EventType C_M_MODIFY_FAMILY
public static final EventType C_M_CREATE_TABLE
public static final EventType C_M_SNAPSHOT_TABLE
public static final EventType C_M_RESTORE_SNAPSHOT
public static final EventType M_ZK_REGION_OFFLINE
public static final EventType M_ZK_REGION_CLOSING
public static final EventType M_SERVER_SHUTDOWN
public static final EventType M_META_SERVER_SHUTDOWN
public static final EventType M_MASTER_RECOVERY
public static final EventType M_LOG_REPLAY
public static final EventType RS_PARALLEL_SEEK
public static final EventType RS_LOG_REPLAY
public static final EventType RS_REGION_REPLICA_FLUSH
public static final EventType RS_COMPACTED_FILES_DISCHARGER
public static final EventType RS_REFRESH_PEER
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getCode()
public static EventType get(int code)
public boolean isOnlineSchemaChangeSupported()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.