ostore.tapestry.api
Class TapestryRouteMsg
java.lang.Object
|
+--ostore.tapestry.api.TapestryRouteMsg
- All Implemented Interfaces:
- Digestible, QueueElementIF, QuickSerializable
- Direct Known Subclasses:
- PingMsg, PongMsg, SimulatedReadResp, TapestryMacRouteMsg, TestFoundMsg, TestReadyMsg
- public abstract class TapestryRouteMsg
- extends Object
- implements QueueElementIF, Digestible
Messages sent from one OceanStore machine to any other. To send a
message from one OceanStore machine to any other, one simply inherits
from this class, filling in the proper serialization code for the
inherited class's data. (The Tapestry stage will take care of the
fields in this class itself.)
Implementation-wise, this is simply a route-to-root operation.
Field Summary |
boolean |
inbound
Whether this message is being received (true ) or sent
(false ). |
SecureHash |
peer
If inbound , the sender; if ! inbound the
intended recipient. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
peer
public SecureHash peer
- If
inbound
, the sender; if ! inbound
the
intended recipient.
inbound
public boolean inbound
- Whether this message is being received (
true
) or sent
(false
).
TapestryRouteMsg
protected TapestryRouteMsg(SecureHash peer)
- Construct with the given destination. Use for new outbound
messages.
TapestryRouteMsg
protected TapestryRouteMsg()
- Empty constructor. For use by derived types when reconstructing
themselves from a byte array.