|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.Header org.jgroups.protocols.pbcast.GMS.GmsHeader
public static class GMS.GmsHeader
Field Summary | |
---|---|
static byte |
CANCEL_MERGE
|
static byte |
GET_DIGEST_REQ
|
static byte |
GET_DIGEST_RSP
|
static byte |
INSTALL_DIGEST
|
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
|
Constructor Summary | |
---|---|
GMS.GmsHeader()
|
|
GMS.GmsHeader(byte type)
|
|
GMS.GmsHeader(byte type,
Address mbr)
|
|
GMS.GmsHeader(byte type,
Address mbr,
boolean useFlushIfPresent)
Used for JOIN_REQ or LEAVE_REQ header |
|
GMS.GmsHeader(byte type,
java.util.Collection<Address> mbrs)
|
|
GMS.GmsHeader(byte type,
JoinRsp join_rsp)
Used for JOIN_RSP header |
|
GMS.GmsHeader(byte type,
View view)
Used for VIEW header |
Method Summary | |
---|---|
Address |
getMember()
|
MergeId |
getMergeId()
|
byte |
getType()
|
boolean |
isMergeRejected()
|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed |
void |
setMergeId(MergeId merge_id)
|
void |
setMergeRejected(boolean merge_rejected)
|
int |
size()
To be implemented by subclasses. |
java.lang.String |
toString()
|
static java.lang.String |
type2String(int type)
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 static final byte INSTALL_DIGEST
Constructor Detail |
---|
public GMS.GmsHeader()
public GMS.GmsHeader(byte type)
public GMS.GmsHeader(byte type, View view)
public GMS.GmsHeader(byte type, Address mbr, boolean useFlushIfPresent)
public GMS.GmsHeader(byte type, Address mbr)
public GMS.GmsHeader(byte type, java.util.Collection<Address> mbrs)
public GMS.GmsHeader(byte type, JoinRsp join_rsp)
Method Detail |
---|
public byte getType()
public Address getMember()
public MergeId getMergeId()
public void setMergeId(MergeId merge_id)
public boolean isMergeRejected()
public void setMergeRejected(boolean merge_rejected)
public java.lang.String toString()
toString
in class Header
public static java.lang.String type2String(int type)
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
public int size()
Header
size
in class Header
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |