org.apache.hadoop.hbase
Enum HMsg.Type

java.lang.Object
  extended by java.lang.Enum<HMsg.Type>
      extended by org.apache.hadoop.hbase.HMsg.Type
All Implemented Interfaces:
Serializable, Comparable<HMsg.Type>
Enclosing class:
HMsg

public static enum HMsg.Type
extends Enum<HMsg.Type>

Message types sent between master and regionservers


Enum Constant Summary
MSG_CALL_SERVER_STARTUP
          UNUSED, it's kept in 0.20 only for rolling upgrades
MSG_NONE
          null message
MSG_REGION_CLOSE
          Stop serving the specified region
MSG_REGION_CLOSE_WITHOUT_REPORT
          Stop serving the specified region and don't report back that it's closed
MSG_REGION_COMPACT
          Compact the specified region
MSG_REGION_FLUSH
          Flush
MSG_REGION_MAJOR_COMPACT
          Run Major Compaction
MSG_REGION_OPEN
          Start serving the specified region
MSG_REGION_SPLIT
          Split the specified region
MSG_REGIONSERVER_QUIESCE
          Stop serving user regions
MSG_REGIONSERVER_STOP
          Master tells region server to stop
MSG_REPORT_CLOSE
          region server is no longer serving the specified region
MSG_REPORT_EXITING
          Region server is shutting down Note that this message is followed by MSG_REPORT_CLOSE messages for each region the region server was serving, unless it was told to quiesce.
MSG_REPORT_OPEN
          region server is now serving the specified region
MSG_REPORT_PROCESS_OPEN
          region server is processing open request
MSG_REPORT_QUIESCED
          Region server has closed all user regions but is still serving meta regions
MSG_REPORT_SPLIT
          Deprecated. See MSG_REPORT_SPLIT_INCLUDES_DAUGHTERS
MSG_REPORT_SPLIT_INCLUDES_DAUGHTERS
          Region server split the region associated with this message.
 
Method Summary
static HMsg.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HMsg.Type[] 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

MSG_NONE

public static final HMsg.Type MSG_NONE
null message


MSG_REGION_OPEN

public static final HMsg.Type MSG_REGION_OPEN
Start serving the specified region


MSG_REGION_CLOSE

public static final HMsg.Type MSG_REGION_CLOSE
Stop serving the specified region


MSG_REGION_SPLIT

public static final HMsg.Type MSG_REGION_SPLIT
Split the specified region


MSG_REGION_COMPACT

public static final HMsg.Type MSG_REGION_COMPACT
Compact the specified region


MSG_CALL_SERVER_STARTUP

public static final HMsg.Type MSG_CALL_SERVER_STARTUP
UNUSED, it's kept in 0.20 only for rolling upgrades


MSG_REGIONSERVER_STOP

public static final HMsg.Type MSG_REGIONSERVER_STOP
Master tells region server to stop


MSG_REGION_CLOSE_WITHOUT_REPORT

public static final HMsg.Type MSG_REGION_CLOSE_WITHOUT_REPORT
Stop serving the specified region and don't report back that it's closed


MSG_REGIONSERVER_QUIESCE

public static final HMsg.Type MSG_REGIONSERVER_QUIESCE
Stop serving user regions


MSG_REPORT_OPEN

public static final HMsg.Type MSG_REPORT_OPEN
region server is now serving the specified region


MSG_REPORT_CLOSE

public static final HMsg.Type MSG_REPORT_CLOSE
region server is no longer serving the specified region


MSG_REPORT_PROCESS_OPEN

public static final HMsg.Type MSG_REPORT_PROCESS_OPEN
region server is processing open request


MSG_REPORT_SPLIT

public static final HMsg.Type MSG_REPORT_SPLIT
Deprecated. See MSG_REPORT_SPLIT_INCLUDES_DAUGHTERS
Region server split the region associated with this message. Note that this message is immediately followed by two MSG_REPORT_OPEN messages, one for each of the new regions resulting from the split


MSG_REPORT_EXITING

public static final HMsg.Type MSG_REPORT_EXITING
Region server is shutting down Note that this message is followed by MSG_REPORT_CLOSE messages for each region the region server was serving, unless it was told to quiesce.


MSG_REPORT_QUIESCED

public static final HMsg.Type MSG_REPORT_QUIESCED
Region server has closed all user regions but is still serving meta regions


MSG_REGION_FLUSH

public static final HMsg.Type MSG_REGION_FLUSH
Flush


MSG_REGION_MAJOR_COMPACT

public static final HMsg.Type MSG_REGION_MAJOR_COMPACT
Run Major Compaction


MSG_REPORT_SPLIT_INCLUDES_DAUGHTERS

public static final HMsg.Type MSG_REPORT_SPLIT_INCLUDES_DAUGHTERS
Region server split the region associated with this message. Its like MSG_REPORT_SPLIT only it carries the daughters in the message rather than send them individually in MSG_REPORT_OPEN messages.

Method Detail

values

public static HMsg.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HMsg.Type c : HMsg.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HMsg.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010 The Apache Software Foundation