org.jgroups.protocols
Class TOTAL.Header
- TOTAL
- Cloneable, Externalizable
public static class TOTAL.Header
The header processed by the TOTAL layer and intended for TOTAL
inter-stack communication
static int | BCAST - Broadcast Message
|
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
|
static int | UCAST - Unicast message
|
long | localSeqID - The ID used by the message source to match replies from the
sequencer
|
long | seqID - The ID imposing the total order of messages
|
int | type - The header's type tag
|
Header() - used for externalization
|
Header(int type, long localSeqID, long seqID) - Create a header for the TOTAL layer
|
BCAST
public static final int BCAST
Broadcast Message
NULL_TYPE
public static final int NULL_TYPE
Null value for the tag
REP
public static final int REP
Reply to broadcast request.
REQ
public static final int REQ
Request to broadcast by the source
UCAST
public static final int UCAST
Unicast message
localSeqID
public long localSeqID
The ID used by the message source to match replies from the
sequencer
seqID
public long seqID
The ID imposing the total order of messages
type
public int type
The header's type tag
Header
public Header()
used for externalization
Header
public Header(int type,
long localSeqID,
long seqID)
Create a header for the TOTAL layer
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
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
Manual deserialization
toString
public String toString()
For debugging purposes
- toString in interface Header
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
Manual serialization
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.