|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.javagroups.Header | +--org.javagroups.protocols.TOTAL.Header
The header processed by the TOTAL layer and intended for TOTAL inter-stack communication
Field Summary | |
---|---|
static int |
BCAST
Broadcast Message |
long |
localSeqID
The ID used by the message source to match replies from the sequencer |
static int |
NULL_TYPE
Null value for the tag |
static int |
REP
Reply to broadcast request. |
static int |
REQ
Request to broadcast by the source |
long |
seqID
The ID imposing the total order of messages |
int |
type
The header's type tag |
static int |
UCAST
Unicast message |
Fields inherited from class org.javagroups.Header |
---|
HDR_OVERHEAD |
Constructor Summary | |
---|---|
TOTAL.Header()
used for externalization |
|
TOTAL.Header(int type,
long localSeqID,
long seqID)
Create a header for the TOTAL layer |
Method Summary | |
---|---|
void |
readExternal(java.io.ObjectInput in)
Manual deserialization |
java.lang.String |
toString()
For debugging purposes |
void |
writeExternal(java.io.ObjectOutput out)
Manual serialization |
Methods inherited from class org.javagroups.Header |
---|
size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NULL_TYPE
public static final int REQ
public static final int REP
public static final int UCAST
public static final int BCAST
public int type
public long localSeqID
public long seqID
Constructor Detail |
public TOTAL.Header()
public TOTAL.Header(int type, long localSeqID, long seqID)
type
- the header's typelocalSeqID
- the ID used by the sender of broadcasts to match
requests with replies from the sequencerseqID
- the ID imposing the total order of messages
java.lang.IllegalArgumentException
- if the provided header type is
unknownMethod Detail |
public java.lang.String toString()
toString
in class Header
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |