org.jgroups.protocols

Class TOTAL_OLD.TotalHeader

public static class TOTAL_OLD.TotalHeader extends Header

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

Field Summary
longseq_id
For TOTAL_BCAST messages, seq_id is used to determine the order of messages in the view.
inttotal_header_type
static intTOTAL_BCAST
static intTOTAL_CUM_SEQ_ACK
static intTOTAL_NEW_VIEW
static intTOTAL_NEW_VIEW_ACK
static intTOTAL_REQUEST
static intTOTAL_RESEND
static intTOTAL_SEQ_ACK
static intTOTAL_UNICAST
Constructor Summary
TotalHeader()
TotalHeader(int type, long seq)
Method Summary
voidreadExternal(ObjectInput in)
StringtoString()
voidwriteExternal(ObjectOutput out)

Field Detail

seq_id

public long seq_id
For TOTAL_BCAST messages, seq_id is used to determine the order of messages in the view. The 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

TOTAL_BCAST

public static final int TOTAL_BCAST

TOTAL_CUM_SEQ_ACK

public static final int TOTAL_CUM_SEQ_ACK

TOTAL_NEW_VIEW

public static final int TOTAL_NEW_VIEW

TOTAL_NEW_VIEW_ACK

public static final int TOTAL_NEW_VIEW_ACK

TOTAL_REQUEST

public static final int TOTAL_REQUEST

TOTAL_RESEND

public static final int TOTAL_RESEND

TOTAL_SEQ_ACK

public static final int TOTAL_SEQ_ACK

TOTAL_UNICAST

public static final int TOTAL_UNICAST

Constructor Detail

TotalHeader

public TotalHeader()

TotalHeader

public TotalHeader(int type, long seq)

Method Detail

readExternal

public void readExternal(ObjectInput in)

toString

public String toString()

writeExternal

public void writeExternal(ObjectOutput out)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.