| Modifier and Type | Field and Description |
|---|---|
static short |
TYPE_JOIN |
static short |
TYPE_JOINRESPONSE |
static short |
TYPE_LEAVE |
static short |
TYPE_PING |
static short |
TYPE_PINGRESPONSE |
| Constructor and Description |
|---|
MessageControl(short controlType,
String helloFromHostPort) |
| Modifier and Type | Method and Description |
|---|---|
short |
getControlType() |
String |
getFromHostPort() |
String |
getToHostPort() |
boolean |
isControlMessage() |
static MessageControl |
readBinaryMessage(DataInput dataInput) |
String |
toString() |
void |
writeBinaryMessage(BinaryMessageList msgList) |
public static final short TYPE_JOIN
public static final short TYPE_LEAVE
public static final short TYPE_PING
public static final short TYPE_JOINRESPONSE
public static final short TYPE_PINGRESPONSE
public MessageControl(short controlType,
String helloFromHostPort)
public static MessageControl readBinaryMessage(DataInput dataInput) throws IOException
IOExceptionpublic boolean isControlMessage()
isControlMessage in interface Messagepublic short getControlType()
public String getToHostPort()
getToHostPort in interface Messagepublic String getFromHostPort()
public void writeBinaryMessage(BinaryMessageList msgList) throws IOException
writeBinaryMessage in interface MessageIOExceptionCopyright © 2014. All Rights Reserved.