|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.util.StandardStage
|
+--dd.router.Router
Router is a DHT independent router.
| Field Summary | |
|---|---|
protected static long |
app_id
Unique identifier for this stage. |
protected long |
init_start_time_ms
The time this stage was started. |
protected boolean |
initialized
Registered with DHT dependent stage and all local stages initialized |
protected boolean |
iterative_routing
Whether or not we do iterative routing for DDRouteMsgs and DDPrefixRouteMsgs. |
protected KbrNeighborInfo[] |
ls
Root set in terms of predecessor and successors. |
protected SecureHash |
my_guid
GUID (SecureHash) of the local server where this stage is running. |
protected KbrNeighborInfo |
my_neighbor_info
NodeId and GUID of the local server where this stage is running. |
protected long |
next_pub_seq
Unique number for publish requests. |
protected int |
search_leaf_set_ttl
NOT USED |
protected Map |
unacked_pubs
Map of unacked publish requests. |
| Fields inherited from class ostore.util.StandardStage |
|---|
classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, resender, resender_tokens, serializable_types, sim_running, tag |
| Constructor Summary | |
|---|---|
Router()
Constructor: Creates a new Router stage. |
|
| Method Summary | |
|---|---|
protected void |
handle_get_ptr_resp(GetPtrResp resp)
|
protected void |
handle_publish_ack_deliver(PublishDataAck ack)
|
protected void |
handle_publish_deliver(KbrRouteDeliver msg,
PublishData pd)
|
protected void |
handle_publish_upcall(KbrRouteUpcall msg,
PublishData pd)
|
protected void |
handle_route_deliver(KbrRouteDeliver msg,
RouteData rd)
|
protected void |
handle_route_dest_deliver(KbrRouteDeliver msg,
RouteDestData rdd)
|
protected void |
handle_route_dest_upcall(KbrRouteUpcall msg,
RouteDestData rdd)
|
protected void |
handle_route_root_deliver_cont(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
|
protected void |
handle_route_root_deliver(KbrRouteDeliver msg,
RouteRootData rrd)
|
protected void |
handle_route_root_upcall_cont(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
|
protected void |
handle_route_root_upcall(KbrRouteUpcall msg,
RouteRootData rrd)
|
protected void |
handle_route_upcall(KbrRouteUpcall msg,
RouteData rd)
|
protected void |
handle_tap_locate_msg_cont(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
|
protected void |
handle_tap_locate_msg(DDLocateMsg msg)
|
protected void |
handle_tap_prefix_route_msg(DDPrefixRouteMsg msg)
|
protected void |
handle_tap_pub_msg(DDPublishReq msg)
|
protected void |
handle_tap_route_msg(DDRouteMsg msg)
|
void |
handleEvent(QueueElementIF item)
|
protected void |
handleKbrRootSetChanged(KbrRootSetChanged msg)
handleKbrRootSetChanged stores the new root set locally. |
protected void |
handleKbrRouteDeliver(KbrRouteDeliver msg)
|
protected void |
handleKbrRouteUpcall(KbrRouteUpcall msg)
|
void |
init(ConfigDataIF config)
|
protected void |
now_sus(long[] tsec,
int[] tusec)
|
protected boolean |
route_to_dest(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
Now that the asynch call to the ptr mgr is done, keep on keepin on |
| Methods inherited from class ostore.util.StandardStage |
|---|
BUG, BUG, BUG, destroy, dispatch, enqueue, handleEvents, now_ms, now_us |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final long app_id
this stage.
protected SecureHash my_guid
protected KbrNeighborInfo my_neighbor_info
protected boolean initialized
protected boolean iterative_routing
protected long init_start_time_ms
protected KbrNeighborInfo[] ls
protected int search_leaf_set_ttl
protected long next_pub_seq
protected Map unacked_pubs
Map of unacked publish requests.
| Constructor Detail |
public Router()
throws Exception
Router stage.
| Method Detail |
public void init(ConfigDataIF config)
throws Exception
init in interface EventHandlerIFinit in class StandardStageExceptionpublic void handleEvent(QueueElementIF item)
handleEvent in interface EventHandlerIFprotected void handleKbrRootSetChanged(KbrRootSetChanged msg)
handleKbrRootSetChanged stores the new root set locally.
msg - KbrRootSetChanged.protected void handle_tap_route_msg(DDRouteMsg msg)
protected void handle_tap_prefix_route_msg(DDPrefixRouteMsg msg)
protected void handle_tap_pub_msg(DDPublishReq msg)
protected void handle_tap_locate_msg(DDLocateMsg msg)
protected void handle_tap_locate_msg_cont(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
protected void handleKbrRouteUpcall(KbrRouteUpcall msg)
protected void handle_route_upcall(KbrRouteUpcall msg,
RouteData rd)
protected void handle_route_root_upcall(KbrRouteUpcall msg,
RouteRootData rrd)
protected void handle_route_root_upcall_cont(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
protected void handle_route_dest_upcall(KbrRouteUpcall msg,
RouteDestData rdd)
protected void handle_publish_upcall(KbrRouteUpcall msg,
PublishData pd)
protected void handleKbrRouteDeliver(KbrRouteDeliver msg)
protected void handle_route_deliver(KbrRouteDeliver msg,
RouteData rd)
protected void handle_route_root_deliver(KbrRouteDeliver msg,
RouteRootData rrd)
protected void handle_route_root_deliver_cont(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
protected void handle_route_dest_deliver(KbrRouteDeliver msg,
RouteDestData rdd)
protected void handle_publish_deliver(KbrRouteDeliver msg,
PublishData pd)
protected void handle_publish_ack_deliver(PublishDataAck ack)
protected void handle_get_ptr_resp(GetPtrResp resp)
protected boolean route_to_dest(GetPtrResp resp,
dd.router.Router.SearchPointersState state)
protected void now_sus(long[] tsec,
int[] tusec)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||