ostore.tapestry.api
Class TapestryPublishMsg

java.lang.Object
  |
  +--ostore.tapestry.api.TapestryPublishMsg
All Implemented Interfaces:
QueueElementIF

public class TapestryPublishMsg
extends Object
implements QueueElementIF

Event that causes Tapestry to publish a backpointer to the given GUID with the given tag.

See Also:
TapestryLocateMsg

Field Summary
 SecureHash guid
          The GUID.
 int local_opts
          A bitmask indicating which local optimizations to use.
 int qos
          The delivery qos of this msg, added by Ling Huang
 TapestryTag tag
          The tag.
 
Constructor Summary
TapestryPublishMsg()
           
TapestryPublishMsg(SecureHash guid, TapestryTag tag)
          Construct according to the given fields.
 
Method Summary
 void setLocalOptPublishAllLinks()
           
 void setLocalOptPublishBackup()
           
 void setLocalOptPublishLocalMisroute()
           
 String toString()
          Returns a human-readable representation of this TapestryPublishMsg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

guid

public SecureHash guid
The GUID.

tag

public TapestryTag tag
The tag.

qos

public int qos
The delivery qos of this msg, added by Ling Huang

local_opts

public int local_opts
A bitmask indicating which local optimizations to use. Bits indicate the following optimizations, from least significant bit to most significant bit: Bit 1) Publish along secondary links, for a few hops Bit 2) Publish along all links at the current level, for a few hops Bit 3) Before leaving a LAN, misroute and publish. Note: "a few hops" is defined by Router.LOCAL_OPT_HOPS
Constructor Detail

TapestryPublishMsg

public TapestryPublishMsg(SecureHash guid,
                          TapestryTag tag)
Construct according to the given fields.

TapestryPublishMsg

public TapestryPublishMsg()
Method Detail

setLocalOptPublishBackup

public void setLocalOptPublishBackup()

setLocalOptPublishAllLinks

public void setLocalOptPublishAllLinks()

setLocalOptPublishLocalMisroute

public void setLocalOptPublishLocalMisroute()

toString

public String toString()
Returns a human-readable representation of this TapestryPublishMsg.
Overrides:
toString in class Object