|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.tapestry.api.TapestryRouteMsg
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 | |
int |
hopCount
Number of hops taken by the message on its way to the application |
boolean |
inbound
Whether this message is being received ( true ) or sent
(false ). |
SecureHash |
peer
If inbound , the sender; if ! inbound the
intended recipient. |
int |
qos
The delivery qos of this msg. |
int |
TTL
Number of hops this message should take before delivering payload. |
Constructor Summary | |
protected |
TapestryRouteMsg()
Empty constructor. |
protected |
TapestryRouteMsg(InputBuffer buffer)
|
protected |
TapestryRouteMsg(SecureHash peer)
Construct with the given destination. |
Method Summary | |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public SecureHash peer
inbound
, the sender; if ! inbound
the
intended recipient.public boolean inbound
true
) or sent
(false
).public int hopCount
public int TTL
public int qos
Constructor Detail |
protected TapestryRouteMsg(SecureHash peer)
protected TapestryRouteMsg()
protected TapestryRouteMsg(InputBuffer buffer)
Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.serialize
in interface QuickSerializable
ostore.util.QuickSerializable
buffer
- the output buffer to add the object to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |