|
||||||||||
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. Most of the time the messages are simple but some messages are accompanied by the region affected. HMsg may also carry optional message.
Nested Class Summary | |
---|---|
static class |
HMsg.Type
Message types sent between master and regionservers |
Field Summary | |
---|---|
static HMsg |
CALL_SERVER_STARTUP
|
static HMsg[] |
EMPTY_HMSG_ARRAY
|
static HMsg |
REGIONSERVER_QUIESCE
|
static HMsg |
REGIONSERVER_STOP
|
static HMsg |
REPORT_EXITING
|
static HMsg |
REPORT_QUIESCED
|
Constructor Summary | |
---|---|
HMsg()
Default constructor. |
|
HMsg(HMsg.Type type)
Construct a message with the specified message and HRegionInfo |
|
HMsg(HMsg.Type type,
HRegionInfo hri)
Construct a message with the specified message and HRegionInfo |
|
HMsg(HMsg.Type type,
HRegionInfo hri,
byte[] msg)
Construct a message with the specified message and HRegionInfo |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
byte[] |
getMessage()
|
HRegionInfo |
getRegionInfo()
|
HMsg.Type |
getType()
|
int |
hashCode()
|
boolean |
isType(HMsg.Type other)
|
void |
readFields(DataInput in)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HMsg REPORT_EXITING
public static final HMsg REPORT_QUIESCED
public static final HMsg REGIONSERVER_QUIESCE
public static final HMsg REGIONSERVER_STOP
public static final HMsg CALL_SERVER_STARTUP
public static final HMsg[] EMPTY_HMSG_ARRAY
Constructor Detail |
---|
public HMsg()
public HMsg(HMsg.Type type)
type
- Message typepublic HMsg(HMsg.Type type, HRegionInfo hri)
type
- Message typehri
- Region to which message type
appliespublic HMsg(HMsg.Type type, HRegionInfo hri, byte[] msg)
type
- Message typehri
- Region to which message type
applies. Cannot be
null. If no info associated, used other Constructor.msg
- Optional message (Stringified exception, etc.)Method Detail |
---|
public HRegionInfo getRegionInfo()
public HMsg.Type getType()
public boolean isType(HMsg.Type other)
other
- Message type to compare to
other
public byte[] getMessage()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |