org.objectweb.dream.protocol.utobcast.message
Interface UTOBcastChunk

All Superinterfaces:
SequenceNumberChunk
All Known Implementing Classes:
UTOBcastChunkImpl

public interface UTOBcastChunk
extends SequenceNumberChunk

Chunk interface for UTOBcast protocol messages. This interface allows retrieving the type of the message that contains it: DAT, ACK, REP, UTO, UPD, or BAK.


Field Summary
static byte ACK
          The byte value for ACK message type.
static byte BAK
          The byte value for BAK message type.
static byte DAT
          The byte value for DAT message type.
static String DEFAULT_NAME
          The default name for chunks of this type.
static byte REP
          The byte value for REP message type.
static ChunkType TYPE
          The Chunk type of chunks that implements this interface.
static byte UPD
          The byte value for UPD message type.
static byte UTO
          The byte value for UTO message type.
 
Method Summary
 Process getProcessFrom()
          Returns the process that sent this message.
 Process getProcessTo()
          Returns the process to which this message is destinated.
 byte getUTOBcastMessageType()
          Returns the UTOBcast type of the message that contains this chunk.
 void setProcessFrom(Process process)
          Sets the process that sent this message.
 void setProcessTo(Process process)
          Sets the process to which this message is destinated.
 void setUTOBcastMessageType(byte type)
          Sets the UTOBcast type of the message that contains this chunk.
 
Methods inherited from interface org.objectweb.dream.queue.SequenceNumberChunk
getSequenceNumber, setSequenceNumber
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
The default name for chunks of this type.

See Also:
Constant Field Values

TYPE

public static final ChunkType TYPE
The Chunk type of chunks that implements this interface.


DAT

public static final byte DAT
The byte value for DAT message type.

See Also:
Constant Field Values

ACK

public static final byte ACK
The byte value for ACK message type.

See Also:
Constant Field Values

REP

public static final byte REP
The byte value for REP message type.

See Also:
Constant Field Values

UTO

public static final byte UTO
The byte value for UTO message type.

See Also:
Constant Field Values

UPD

public static final byte UPD
The byte value for UPD message type.

See Also:
Constant Field Values

BAK

public static final byte BAK
The byte value for BAK message type.

See Also:
Constant Field Values
Method Detail

getUTOBcastMessageType

public byte getUTOBcastMessageType()
Returns the UTOBcast type of the message that contains this chunk.

Returns:
  • 0 for DAT messages
  • 1 for ACK messages
  • 2 for REP messages
  • 3 for UTO messages
  • 4 for UPD messages
  • 5 for BACK messages

setUTOBcastMessageType

public void setUTOBcastMessageType(byte type)
Sets the UTOBcast type of the message that contains this chunk. This type can be

Parameters:
type - the UTOBcast type to set.

getProcessFrom

public Process getProcessFrom()
Returns the process that sent this message.

Returns:
the process that sent this message.

setProcessFrom

public void setProcessFrom(Process process)
Sets the process that sent this message.

Parameters:
process - the process that sent this message.

getProcessTo

public Process getProcessTo()
Returns the process to which this message is destinated.

Returns:
the process to which this message is destinated.

setProcessTo

public void setProcessTo(Process process)
Sets the process to which this message is destinated.

Parameters:
process - the process to which this message is destinated.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.