|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.Header
org.jgroups.protocols.pbcast.GMS.GmsHeader
Field Summary | |
static byte |
CANCEL_MERGE
|
static byte |
INSTALL_MERGE_VIEW
|
static byte |
JOIN_REQ
|
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
|
Fields inherited from class org.jgroups.Header |
HDR_OVERHEAD |
Constructor Summary | |
GMS.GmsHeader()
|
|
GMS.GmsHeader(byte type)
|
|
GMS.GmsHeader(byte type,
Address mbr)
Used for JOIN_REQ or LEAVE_REQ header |
|
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 |
getMemeber()
|
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 |
long |
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. |
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
Constructor Detail |
public GMS.GmsHeader()
public GMS.GmsHeader(byte type)
public GMS.GmsHeader(byte type, View view)
public GMS.GmsHeader(byte type, Address mbr)
public GMS.GmsHeader(byte type, JoinRsp join_rsp)
Method Detail |
public byte getType()
public Address getMemeber()
public java.lang.String toString()
toString
in class Header
public static java.lang.String type2String(int type)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
public long size()
Header
size
in class Header
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |