Streamablepublic static class GMS.GmsHeader extends Header implements Streamable
| Modifier and Type | Field | Description |
|---|---|---|
static byte |
CANCEL_MERGE |
|
static byte |
GET_DIGEST_REQ |
|
static byte |
GET_DIGEST_RSP |
|
static byte |
INSTALL_MERGE_VIEW |
|
static byte |
INSTALL_MERGE_VIEW_OK |
|
static byte |
JOIN_REQ |
|
static byte |
JOIN_REQ_WITH_STATE_TRANSFER |
|
static byte |
JOIN_RSP |
|
static byte |
LEAVE_REQ |
|
static byte |
LEAVE_RSP |
|
static byte |
MERGE_REQ |
|
static byte |
MERGE_RSP |
|
static byte |
VIEW |
|
static byte |
VIEW_ACK |
HDR_OVERHEAD| Constructor | Description |
|---|---|
GmsHeader() |
|
GmsHeader(byte type) |
|
GmsHeader(byte type,
Address mbr) |
Used for JOIN_REQ or LEAVE_REQ header
|
GmsHeader(byte type,
JoinRsp join_rsp) |
Used for JOIN_RSP header
|
GmsHeader(byte type,
View view) |
Used for VIEW header
|
| Modifier and Type | Method | Description |
|---|---|---|
Address |
getMember() |
|
byte |
getType() |
|
void |
readExternal(java.io.ObjectInput in) |
|
void |
readFrom(java.io.DataInputStream in) |
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size() |
To be implemented by subclasses.
|
java.lang.String |
toString() |
|
static java.lang.String |
type2String(int type) |
|
void |
writeExternal(java.io.ObjectOutput out) |
|
void |
writeTo(java.io.DataOutputStream out) |
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte JOIN_REQ
public static final byte JOIN_RSP
public static final byte LEAVE_REQ
public static final byte LEAVE_RSP
public static final byte VIEW
public static final byte MERGE_REQ
public static final byte MERGE_RSP
public static final byte INSTALL_MERGE_VIEW
public static final byte CANCEL_MERGE
public static final byte VIEW_ACK
public static final byte JOIN_REQ_WITH_STATE_TRANSFER
public static final byte INSTALL_MERGE_VIEW_OK
public static final byte GET_DIGEST_REQ
public static final byte GET_DIGEST_RSP
public GmsHeader()
public GmsHeader(byte type)
public GmsHeader(byte type,
View view)
public GmsHeader(byte type,
Address mbr)
public GmsHeader(byte type,
JoinRsp join_rsp)
public byte getType()
public Address getMember()
public static java.lang.String type2String(int type)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
StreamablereadFrom in interface Streamablejava.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic int size()
HeaderCopyright ? 1998-2008 Bela Ban. All Rights Reserved.