|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.HMsg
public class HMsg
HMsg is for communicating instructions between the HMaster and the HRegionServers.
| Field Summary | |
|---|---|
static byte |
MSG_CALL_SERVER_STARTUP
Region server is unknown to master. |
static byte |
MSG_REGION_CLOSE
Stop serving the specified region |
static byte |
MSG_REGION_CLOSE_WITHOUT_REPORT
Stop serving the specified region and don't report back that it's closed |
static byte |
MSG_REGION_OPEN
Start serving the specified region |
static byte |
MSG_REGIONSERVER_STOP
Master tells region server to stop |
static byte |
MSG_REPORT_CLOSE
region server is no longer serving the specified region |
static byte |
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. |
static byte |
MSG_REPORT_OPEN
region server is now serving the specified region |
static byte |
MSG_REPORT_SPLIT
region server split the region associated with this message. |
| Constructor Summary | |
|---|---|
HMsg()
Default constructor. |
|
HMsg(byte msg)
Construct a message with an empty HRegionInfo |
|
HMsg(byte msg,
HRegionInfo info)
Construct a message with the specified message code and HRegionInfo |
|
| Method Summary | |
|---|---|
byte |
getMsg()
Accessor |
HRegionInfo |
getRegionInfo()
Accessor |
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte MSG_REGION_OPEN
public static final byte MSG_REGION_CLOSE
public static final byte MSG_CALL_SERVER_STARTUP
public static final byte MSG_REGIONSERVER_STOP
public static final byte MSG_REGION_CLOSE_WITHOUT_REPORT
public static final byte MSG_REPORT_OPEN
public static final byte MSG_REPORT_CLOSE
public static final byte MSG_REPORT_SPLIT
public static final byte MSG_REPORT_EXITING
| Constructor Detail |
|---|
public HMsg()
public HMsg(byte msg)
msg - - message code
public HMsg(byte msg,
HRegionInfo info)
msg - - message codeinfo - - HRegionInfo| Method Detail |
|---|
public byte getMsg()
public HRegionInfo getRegionInfo()
public String toString()
toString in class Object
public void write(DataOutput out)
throws IOException
out.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||