org.jgroups.protocols

Class TOTAL.Header

public static class TOTAL.Header extends Header

The header processed by the TOTAL layer and intended for TOTAL inter-stack communication
Field Summary
static intBCAST
Broadcast Message
longlocalSequenceID
The ID used by the message source to match replies from the sequencer
static intNULL_TYPE
Null value for the tag
static intREP
Reply to broadcast request.
static intREQ
Request to broadcast by the source
longsequenceID
The ID imposing the total order of messages
inttype
The header's type tag
static intUCAST
Unicast message
Constructor Summary
Header()
used for externalization
Header(int type, long localSeqID, long seqID)
Create a header for the TOTAL layer
Method Summary
voidreadExternal(ObjectInput in)
Manual deserialization
StringtoString()
For debugging purposes
voidwriteExternal(ObjectOutput out)
Manual serialization

Field Detail

BCAST

public static final int BCAST
Broadcast Message

localSequenceID

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

NULL_TYPE

public static final int NULL_TYPE
Null value for the tag

REP

public static final int REP
Reply to broadcast request.

REQ

public static final int REQ
Request to broadcast by the source

sequenceID

public long sequenceID
The ID imposing the total order of messages

type

public int type
The header's type tag

UCAST

public static final int UCAST
Unicast message

Constructor Detail

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

Throws: IllegalArgumentException if the provided header type is unknown

Method Detail

readExternal

public void readExternal(ObjectInput in)
Manual deserialization

toString

public String toString()
For debugging purposes

writeExternal

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