org.jgroups.protocols
Class TOTAL_OLD.TotalHeader
- TOTAL_OLD
- Cloneable, Externalizable
public static class TOTAL_OLD.TotalHeader
class TotalHeader
The header that is prepended to every message passed down through the TOTAL_OLD layer
and removed (and processed) from every message passed up through the TOTAL_OLD layer
TOTAL_BCAST
public static final int TOTAL_BCAST
- 1
TOTAL_CUM_SEQ_ACK
public static final int TOTAL_CUM_SEQ_ACK
- 5
TOTAL_NEW_VIEW
public static final int TOTAL_NEW_VIEW
- 3
TOTAL_NEW_VIEW_ACK
public static final int TOTAL_NEW_VIEW_ACK
- 4
TOTAL_REQUEST
public static final int TOTAL_REQUEST
- 2
TOTAL_RESEND
public static final int TOTAL_RESEND
- 7
TOTAL_SEQ_ACK
public static final int TOTAL_SEQ_ACK
- 6
TOTAL_UNICAST
public static final int TOTAL_UNICAST
- 0
seq_id
public long seq_id
seq_id
for TOTAL_BCAST messages, seq_id is used to determine the order of messages
in the view. seq_id is expected to increment by one for each new message
sent in the current view. this sequence id is reset with each new view.
the GMS layer should make sure that messages sent in one view are not
received in another view.
for TOTAL_REQUEST messages, seq_id is not used
for TOTAL_NEW_VIEW, seq_id is the sequence id that the sequencer of this
view will use for the first message broadcast to the group
(i.e. the expected sequence id is "reset" to this value)
for TOTAL_NEW_VIEW_ACK,
for TOTAL_CUM_SEQ_ACK messages, the seq_id is the cumulative sequence id
that the sender has received
for TOTAL_SEQ_ACK messages, seq_id is the sequence id that is being acknowledged
for TOTAL_RESEND, seq_id is the sequence id to be sent again
total_header_type
public int total_header_type
TotalHeader
public TotalHeader()
TotalHeader
public TotalHeader(int type,
long seq)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
toString
public String toString()
- toString in interface Header
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.