|
||||||||||
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 |
Constructor Summary | |
---|---|
HMsg()
Default constructor. |
|
HMsg(HMsg.Type type)
Construct a message with the specified message and empty HRegionInfo |
|
HMsg(HMsg.Type type,
HRegionInfo hri)
Construct a message with the specified message and HRegionInfo |
|
HMsg(HMsg.Type type,
HRegionInfo hri,
boolean safeMode)
Constructor used by master to inform region servers if we are still in safe mode. |
|
HMsg(HMsg.Type type,
HRegionInfo hri,
byte[] msg)
Construct a message with the specified message and HRegionInfo |
|
HMsg(HMsg.Type type,
HRegionInfo hri,
byte[] msg,
boolean safemode)
Used by the master to inform region servers if we are still in safe mode |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
byte[] |
getMessage()
|
HRegionInfo |
getRegionInfo()
|
HMsg.Type |
getType()
|
int |
hashCode()
|
boolean |
isInSafeMode()
|
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 |
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, boolean safeMode)
type
- hri
- safeMode
- public 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.)public HMsg(HMsg.Type type, HRegionInfo hri, byte[] msg, boolean safemode)
type
- hri
- msg
- safemode
- 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 boolean isInSafeMode()
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 |