tapestry.impl
Class TapestryMessage

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--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, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
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)
           
 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
See Also:
Constant Field Values

MULTICAST

public static final int MULTICAST
See Also:
Constant Field Values

ANYCAST

public static final int ANYCAST
See Also:
Constant Field Values
Constructor Detail

TapestryMessage

public TapestryMessage(NodeId peer,
                       boolean inbound)

TapestryMessage

public TapestryMessage(InputBuffer buffer)
                throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class NetworkMessage

clone

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

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