org.jgroups.protocols

Class TOTAL_OLD.TotalHeader

Enclosing Class:
TOTAL_OLD
Implemented Interfaces:
Externalizable

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

static int
TOTAL_BCAST
static int
TOTAL_CUM_SEQ_ACK
static int
TOTAL_NEW_VIEW
static int
TOTAL_NEW_VIEW_ACK
static int
TOTAL_REQUEST
static int
TOTAL_RESEND
static int
TOTAL_SEQ_ACK
static int
TOTAL_UNICAST
long
seq_id
For TOTAL_BCAST messages, seq_id is used to determine the order of messages in the view.
int
total_header_type

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

TotalHeader()
TotalHeader(int type, long seq)

Method Summary

void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)

Methods inherited from class org.jgroups.Header

size, toString

Field Details

TOTAL_BCAST

public static final int TOTAL_BCAST
Field Value:
1

TOTAL_CUM_SEQ_ACK

public static final int TOTAL_CUM_SEQ_ACK
Field Value:
5

TOTAL_NEW_VIEW

public static final int TOTAL_NEW_VIEW
Field Value:
3

TOTAL_NEW_VIEW_ACK

public static final int TOTAL_NEW_VIEW_ACK
Field Value:
4

TOTAL_REQUEST

public static final int TOTAL_REQUEST
Field Value:
2

TOTAL_RESEND

public static final int TOTAL_RESEND
Field Value:
7

TOTAL_SEQ_ACK

public static final int TOTAL_SEQ_ACK
Field Value:
6

TOTAL_UNICAST

public static final int TOTAL_UNICAST
Field Value:
0

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

Constructor Details

TotalHeader

public TotalHeader()

TotalHeader

public TotalHeader(int type,
                   long seq)

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

toString

public String toString()
Overrides:
toString in interface Header

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.