org.jgroups.protocols
Class TOTAL_OLD.TotalHeader

java.lang.Object
  extended byorg.jgroups.Header
      extended byorg.jgroups.protocols.TOTAL_OLD.TotalHeader
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Enclosing class:
TOTAL_OLD

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

See Also:
Serialized Form

Field Summary
 long seq_id
          For TOTAL_BCAST messages, seq_id is used to determine the order of messages in the view.
static int TOTAL_BCAST
           
static int TOTAL_CUM_SEQ_ACK
           
 int total_header_type
           
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
           
 
Fields inherited from class org.jgroups.Header
HDR_OVERHEAD
 
Constructor Summary
TOTAL_OLD.TotalHeader()
           
TOTAL_OLD.TotalHeader(int type, long seq)
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.jgroups.Header
size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOTAL_UNICAST

public static final int TOTAL_UNICAST
See Also:
Constant Field Values

TOTAL_BCAST

public static final int TOTAL_BCAST
See Also:
Constant Field Values

TOTAL_REQUEST

public static final int TOTAL_REQUEST
See Also:
Constant Field Values

TOTAL_NEW_VIEW

public static final int TOTAL_NEW_VIEW
See Also:
Constant Field Values

TOTAL_NEW_VIEW_ACK

public static final int TOTAL_NEW_VIEW_ACK
See Also:
Constant Field Values

TOTAL_CUM_SEQ_ACK

public static final int TOTAL_CUM_SEQ_ACK
See Also:
Constant Field Values

TOTAL_SEQ_ACK

public static final int TOTAL_SEQ_ACK
See Also:
Constant Field Values

TOTAL_RESEND

public static final int TOTAL_RESEND
See Also:
Constant Field Values

total_header_type

public int total_header_type

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.

Constructor Detail

TOTAL_OLD.TotalHeader

public TOTAL_OLD.TotalHeader()

TOTAL_OLD.TotalHeader

public TOTAL_OLD.TotalHeader(int type,
                             long seq)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Header

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright ? 1998-2005 Bela Ban. All Rights Reserved.