|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HBaseEventHandler.HBaseEventType>
org.apache.hadoop.hbase.executor.HBaseEventHandler.HBaseEventType
public static enum HBaseEventHandler.HBaseEventType
These are a list of HBase events that can be handled by the various HBaseExecutorService's. All the events are serialized as byte values.
Enum Constant Summary | |
---|---|
M2ZK_REGION_OFFLINE
|
|
NONE
|
|
RS2ZK_REGION_CLOSED
|
|
RS2ZK_REGION_CLOSING
|
|
RS2ZK_REGION_OPENED
|
|
RS2ZK_REGION_OPENING
|
Method Summary | |
---|---|
static HBaseEventHandler.HBaseEventType |
fromByte(byte value)
|
byte |
getByteValue()
|
HBaseExecutorService.HBaseExecutorServiceType |
getMasterExecutorForEvent()
Called by the HMaster. |
static String |
getRSExecutorForEvent(String serverName)
Called by the RegionServer. |
void |
startMasterExecutorService(String serverName)
Start the executor service that handles the passed in event type. |
static void |
startRSExecutorService()
|
static HBaseEventHandler.HBaseEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HBaseEventHandler.HBaseEventType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HBaseEventHandler.HBaseEventType NONE
public static final HBaseEventHandler.HBaseEventType RS2ZK_REGION_CLOSING
public static final HBaseEventHandler.HBaseEventType RS2ZK_REGION_CLOSED
public static final HBaseEventHandler.HBaseEventType RS2ZK_REGION_OPENING
public static final HBaseEventHandler.HBaseEventType RS2ZK_REGION_OPENED
public static final HBaseEventHandler.HBaseEventType M2ZK_REGION_OFFLINE
Method Detail |
---|
public static HBaseEventHandler.HBaseEventType[] values()
for (HBaseEventHandler.HBaseEventType c : HBaseEventHandler.HBaseEventType.values()) System.out.println(c);
public static HBaseEventHandler.HBaseEventType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic HBaseExecutorService.HBaseExecutorServiceType getMasterExecutorForEvent()
public static String getRSExecutorForEvent(String serverName)
public void startMasterExecutorService(String serverName)
public static void startRSExecutorService()
public byte getByteValue()
public static HBaseEventHandler.HBaseEventType fromByte(byte value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |