dd.kbr.api
Class KbrRouteUpcall

java.lang.Object
  |
  +--dd.kbr.api.KbrRouteUpcall
All Implemented Interfaces:
QueueElementIF

public class KbrRouteUpcall
extends Object
implements QueueElementIF

KbrRouteUpcall is called on intermediate nodes along the routing path. See the comments for KbrRouteInit from more information.

Version:
$Id: KbrRouteUpcall.java,v 1.1.1.1 2004/04/06 00:09:56 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
KbrRouteInit, KbrRouteContinue, KbrRouteDeliver

Field Summary
 long appId
          Unique identifier for a destination application.
 SecureHash dest
          Unique identifier of src and dest node.
 long est_rtt_ms
          Specified by ostore.network.NetworkMessage
 NodeId immediate_src
          The NodeId of the last node this msg came through.
 boolean iter
          Flag indicating whether the messages should be routed iteratively or recursively.
 QuickSerializable payload
          Message to deliver to destination node.
 SecureHash src
          Unique identifier of src and dest node.
 int tries
          Specified by ostore.network.NetworkMessage
 long wait_ms
          Specified by ostore.network.NetworkMessage
 
Constructor Summary
KbrRouteUpcall(SecureHash s, SecureHash d, NodeId i, long a, boolean it, int att, long w, long e, QuickSerializable p)
          Constructor: Creates a new KbrRouteUpcall.
 
Method Summary
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

src

public SecureHash src
Unique identifier of src and dest node.


dest

public SecureHash dest
Unique identifier of src and dest node.


immediate_src

public NodeId immediate_src
The NodeId of the last node this msg came through.


appId

public long appId
Unique identifier for a destination application. Analogous to the function of a port as a unique application identifier when sending an IP:port packet.


iter

public boolean iter
Flag indicating whether the messages should be routed iteratively or recursively. (See KbrRouteInit.iter for more comments.


tries

public int tries
Specified by ostore.network.NetworkMessage


wait_ms

public long wait_ms
Specified by ostore.network.NetworkMessage


est_rtt_ms

public long est_rtt_ms
Specified by ostore.network.NetworkMessage


payload

public QuickSerializable payload
Message to deliver to destination node.

Constructor Detail

KbrRouteUpcall

public KbrRouteUpcall(SecureHash s,
                      SecureHash d,
                      NodeId i,
                      long a,
                      boolean it,
                      int att,
                      long w,
                      long e,
                      QuickSerializable p)
Constructor: Creates a new KbrRouteUpcall.

Parameters:
s - Unique identifier of src node.
d - Unique identifier of dest node.
i - NodeId of the last node this msg came thru.
a - Unique identifier for a destination application.
it - Flag indicating whether the messages should be routed iteratively or recursively.
att - Specified by ostore.network.NetworkMessage#tries
w - Specified by ostore.network.NetworkMessage#wait_ms
e - Specified by ostore.network.NetworkMessage#est_rtt_ms
p - Message to deliver to destination node.
Method Detail

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object