org.jgroups.protocols

Class TOTAL.Header

Enclosing Class:
TOTAL
Implemented Interfaces:
Externalizable

public static class TOTAL.Header
extends Header

The header processed by the TOTAL layer and intended for TOTAL inter-stack communication

Field Summary

static int
BCAST
Broadcast Message
static int
NULL_TYPE
Null value for the tag
static int
REP
Reply to broadcast request.
static int
REQ
Request to broadcast by the source
static int
UCAST
Unicast message
long
localSequenceID
The ID used by the message source to match replies from the sequencer
long
sequenceID
The ID imposing the total order of messages
int
type
The header's type tag

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

Header()
used for externalization
Header(int type, long localSeqID, long seqID)
Create a header for the TOTAL layer

Method Summary

void
readExternal(ObjectInput in)
Manual deserialization
String
toString()
For debugging purposes
void
writeExternal(ObjectOutput out)
Manual serialization

Methods inherited from class org.jgroups.Header

size, toString

Field Details

BCAST

public static final int BCAST
Broadcast Message
Field Value:
3

NULL_TYPE

public static final int NULL_TYPE
Null value for the tag
Field Value:
-1

REP

public static final int REP
Reply to broadcast request.
Field Value:
1

REQ

public static final int REQ
Request to broadcast by the source
Field Value:
0

UCAST

public static final int UCAST
Unicast message
Field Value:
2

localSequenceID

public long localSequenceID
The ID used by the message source to match replies from the sequencer

sequenceID

public long sequenceID
The ID imposing the total order of messages

type

public int type
The header's type tag

Constructor Details

Header

public Header()
used for externalization

Header

public Header(int type,
              long localSeqID,
              long seqID)
Create a header for the TOTAL layer
Parameters:
type - the header's type
localSeqID - the ID used by the sender of broadcasts to match requests with replies from the sequencer
seqID - the ID imposing the total order of messages

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException
Manual deserialization

toString

public String toString()
For debugging purposes
Overrides:
toString in interface Header

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException
Manual serialization

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