org.jgroups.protocols
Class TOTAL_OLD.TotalHeader
java.lang.Object
org.jgroups.Header
org.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
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 |
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.
TOTAL_OLD.TotalHeader
public TOTAL_OLD.TotalHeader()
TOTAL_OLD.TotalHeader
public TOTAL_OLD.TotalHeader(int type,
long seq)
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-2006 Bela Ban. All Rights Reserved.