| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.network.NetworkMessage
| Field Summary | |
|---|---|
|  SinkIF | comp_qA completion queue to enqueue a success or failure on after this message is successfully acknowledged or times out tries times, respectively; the enqueued object will be of type NetworkMessageResult; if this field is null, no event will be enqueued. | 
|  long | est_rtt_msThe sending node's estimate of the round trip time between it and the receiving node, or -1 if this information is not available. | 
|  boolean | inbound | 
|  NodeId | peerIf inbound=truethenpeeris the NodeId
 of the node where this message came from; otherwise, it's the NodeId
 of the node where this message should be sent. | 
|  NodeId | senderDO NOT TOUCH THIS FIELD. | 
|  int | triesFor outbound messages, the number of times to attempt sending the message before giving up; for inbound messages, the number of times the sender sent the message, including this one, or -1 if this information is unknown. | 
|  Object | user_dataA value to place in the NetworkMessageResult so that the calling stage can associate the result with this request. | 
|  long | wait_msThe time in milliseconds that this message spent in the sending node's outbound queue waiting for the transport channel to be available. | 
| Constructor Summary | |
|---|---|
| NetworkMessage(InputBuffer buffer) | |
| NetworkMessage(NodeId peer,
               boolean inbound) | |
| Method Summary | |
|---|---|
|  Object | clone() | 
|  void | serialize(OutputBuffer buffer)Add the object to the buffer. | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public NodeId peer
inbound=true then peer is the NodeId
 of the node where this message came from; otherwise, it's the NodeId
 of the node where this message should be sent.
public boolean inbound
public NodeId sender
public int tries
tries != -1), use
 tries-1.  Depending on the underlying network layer, this
 field may be ignored (for outbound messages).
public long wait_ms
public long est_rtt_ms
public SinkIF comp_q
public Object user_data
| Constructor Detail | 
public NetworkMessage(NodeId peer,
                      boolean inbound)
public NetworkMessage(InputBuffer buffer)
               throws QSException
| Method Detail | 
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializablebuffer - the output buffer to add the object to
public Object clone()
             throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class Object| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||