ostore.tapestry.api
Class TapestryPrefixRouteMsg

java.lang.Object
  |
  +--ostore.tapestry.api.TapestryPrefixRouteMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public abstract class TapestryPrefixRouteMsg
extends Object
implements QueueElementIF, QuickSerializable

Messages sent from one OceanStore machine to some other, hopefully with a node GUID that closely matches the given one. The desired GUID to be matched is placed in peer when ! inbound. Because the recipient of this message is unknown to the sender, it cannot be MAC'ed.

Implementation-wise, this is simply a route-to-root operation which is received by the node closest to the (likely non-existent) root. If the root exists, it is equivalent to a TapestryRouteMsg with mac == false.


Field Summary
 boolean inbound
          Whether this message is being received (true) or sent (false).
 SecureHash peer
          If inbound, the sender; if ! inbound the GUID to try and match.
 
Constructor Summary
TapestryPrefixRouteMsg()
          Empty constructor.
TapestryPrefixRouteMsg(SecureHash peer, boolean inbound)
          Construct according to the given fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ostore.util.QuickSerializable
to_bytes, type_code
 

Field Detail

peer

public SecureHash peer
If inbound, the sender; if ! inbound the GUID to try and match.

inbound

public boolean inbound
Whether this message is being received (true) or sent (false).
Constructor Detail

TapestryPrefixRouteMsg

public TapestryPrefixRouteMsg(SecureHash peer,
                              boolean inbound)
Construct according to the given fields.

TapestryPrefixRouteMsg

public TapestryPrefixRouteMsg()
Empty constructor. For use by derived types when reconstructing themselves from a byte array.