ostore.tapestry.impl
Class TapestryMessage

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--ostore.tapestry.impl.TapestryMessage
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable
Direct Known Subclasses:
PublishMsg, RouteMsg, RouteObjDestMsg, RouteObjRootMsg, TapestryCarrierMessage

public class TapestryMessage
extends NetworkMessage


Field Summary
static int ANYCAST
           
protected  int d_type
           
protected  int frg_id
           
protected  int frg_num
           
protected  SecureHash msg_id
           
static int MULTICAST
           
protected  int qos
           
static int UNICAST
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, inbound, peer, sender, tries, user_data
 
Constructor Summary
TapestryMessage(InputBuffer buffer)
           
TapestryMessage(NodeId peer, boolean inbound)
           
 
Method Summary
 Object clone()
           
 int get_delivery_type()
           
 int get_frg_id()
           
 int get_frg_num()
           
 SecureHash get_msg_id()
           
 int get_qos()
           
 boolean is_reliable()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 void set_delivery_type(int flag)
           
 void set_frg_id(int id)
           
 void set_frg_num(int num)
           
 void set_msg_id(SecureHash id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

qos

protected int qos

msg_id

protected SecureHash msg_id

frg_num

protected int frg_num

frg_id

protected int frg_id

d_type

protected int d_type

UNICAST

public static final int UNICAST

MULTICAST

public static final int MULTICAST

ANYCAST

public static final int ANYCAST
Constructor Detail

TapestryMessage

public TapestryMessage(NodeId peer,
                       boolean inbound)

TapestryMessage

public TapestryMessage(InputBuffer buffer)
                throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.
Overrides:
serialize in class NetworkMessage
Following copied from interface: ostore.util.QuickSerializable
Parameters:
buffer - the output buffer to add the object to

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class NetworkMessage

is_reliable

public boolean is_reliable()

get_qos

public int get_qos()

get_frg_num

public int get_frg_num()

get_frg_id

public int get_frg_id()

get_msg_id

public SecureHash get_msg_id()

get_delivery_type

public int get_delivery_type()

set_msg_id

public void set_msg_id(SecureHash id)

set_frg_num

public void set_frg_num(int num)

set_frg_id

public void set_frg_id(int id)

set_delivery_type

public void set_delivery_type(int flag)

toString

public String toString()
Overrides:
toString in class NetworkMessage