tapestry.impl
Class PublishMsg

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--tapestry.impl.TapestryMessage
              |
              +--tapestry.impl.PublishMsg
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public class PublishMsg
extends TapestryMessage
implements QuickSerializable


Field Summary
 SecureHash guid
           
 int hop
           
 int local_opts
          Local optimizations flags and time-to-live
 int local_opts_ttl
           
 boolean publish
           
 SecureHash src
           
 TapestryTag tag
           
 int TTL
          Maximum number of hops this msg can take.
 
Fields inherited from class tapestry.impl.TapestryMessage
ANYCAST, d_type, frg_id, frg_num, msg_id, MULTICAST, qos, UNICAST
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
PublishMsg(InputBuffer buffer)
           
PublishMsg(NodeId peer, SecureHash src, SecureHash guid, TapestryTag tag, int hop, boolean publish)
           
 
Method Summary
 Object clone()
           
 SecureHash generate_msg_id()
           
 SecureHash generate_msg_id(Object id)
           
 void serialize(OutputBuffer buffer)
           
 void set_qos(int qos)
           
 String toString()
           
 
Methods inherited from class tapestry.impl.TapestryMessage
get_delivery_type, get_frg_id, get_frg_num, get_msg_id, get_qos, is_reliable, set_delivery_type, set_frg_id, set_frg_num, set_msg_id
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

src

public SecureHash src

guid

public SecureHash guid

tag

public TapestryTag tag

hop

public int hop

publish

public boolean publish

TTL

public int TTL
Maximum number of hops this msg can take.


local_opts

public int local_opts
Local optimizations flags and time-to-live


local_opts_ttl

public int local_opts_ttl
Constructor Detail

PublishMsg

public PublishMsg(NodeId peer,
                  SecureHash src,
                  SecureHash guid,
                  TapestryTag tag,
                  int hop,
                  boolean publish)

PublishMsg

public PublishMsg(InputBuffer buffer)
           throws QSException
Method Detail

serialize

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

clone

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

set_qos

public void set_qos(int qos)

generate_msg_id

public SecureHash generate_msg_id()

generate_msg_id

public SecureHash generate_msg_id(Object id)

toString

public String toString()
Overrides:
toString in class TapestryMessage