bamboo.router
Class RouterCallbackInterface

java.lang.Object
  extended by bamboo.util.StandardStage
      extended by bamboo.router.RouterCallbackInterface
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

Deprecated. bamboo.router.Router now directly implements all of the functionality provided by this class.

public class RouterCallbackInterface
extends StandardStage
implements SingleThreadedEventHandlerIF

A wrapper around the Bamboo router which provides a function-callback style interface. Each public function of this class corresponds to the similarly named Req event in bamboo.api. Each public callback interface in this class corresponds to the similarly named Resp event in bamboo.api. See those classes for details about the use of the interface. The only real difference here is that each request takes a callback and an associated user_data opaque object to call it with.

Version:
$Id: RouterCallbackInterface.java,v 1.8 2005/03/02 02:48:00 srhea Exp $
Author:
Sean C. Rhea

Nested Class Summary
protected static class RouterCallbackInterface.Application
          Deprecated.  
static interface RouterCallbackInterface.ApplicationRegisteredCB
          Deprecated.  
static interface RouterCallbackInterface.LeafSetChangedCB
          Deprecated.  
static interface RouterCallbackInterface.RouteDeliverCB
          Deprecated.  
static interface RouterCallbackInterface.RouteUpcallCB
          Deprecated.  
static interface RouterCallbackInterface.RoutingTableChangedCB
          Deprecated.  
 
Field Summary
protected  Map apps
          Deprecated.  
protected static Map instances
          Deprecated.  
 
Fields inherited from class bamboo.util.StandardStage
acore, classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, sim_running
 
Constructor Summary
RouterCallbackInterface()
          Deprecated.  
 
Method Summary
protected  void handle_app_reg_resp(BambooRouterAppRegResp resp)
          Deprecated.  
protected  void handle_leaf_set_changed(BambooLeafSetChanged msg)
          Deprecated.  
protected  void handle_route_deliver(BambooRouteDeliver msg)
          Deprecated.  
protected  void handle_route_upcall(BambooRouteUpcall msg)
          Deprecated.  
protected  void handle_rt_changed(BambooRoutingTableChanged msg)
          Deprecated.  
 void handleEvent(QueueElementIF item)
          Deprecated.  
 void init(ConfigDataIF config)
          Deprecated.  
static RouterCallbackInterface instance(ostore.util.NodeId node_id)
          Deprecated.  
 void register_app(long app_id, RouterCallbackInterface.LeafSetChangedCB lscb, Object ls_user_data, RouterCallbackInterface.RoutingTableChangedCB rtcb, Object rt_user_data, RouterCallbackInterface.RouteUpcallCB upcb, Object up_user_data, RouterCallbackInterface.RouteDeliverCB delcb, Object del_user_data, RouterCallbackInterface.ApplicationRegisteredCB regcb, Object user_data)
          Deprecated.  
 void route_continue(BigInteger src, BigInteger dest, ostore.util.NodeId immediate_src, long app_id, boolean intermediate_upcall, boolean iter, ostore.util.QuickSerializable payload)
          Deprecated.  
 void route_init(BigInteger dest, long app_id, boolean intermediate_upcall, boolean iter, ostore.util.QuickSerializable payload)
          Deprecated.  
 
Methods inherited from class bamboo.util.StandardStage
BUG, BUG, BUG, config_get_boolean, config_get_double, config_get_int, config_get_string, configGetInt, destroy, dispatch, enqueue, handleEvents, lookup_stage, now_ms, timer_ms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instances

protected static Map instances
Deprecated. 

apps

protected Map apps
Deprecated. 
Constructor Detail

RouterCallbackInterface

public RouterCallbackInterface()
                        throws Exception
Deprecated. 
Throws:
Exception
Method Detail

instance

public static RouterCallbackInterface instance(ostore.util.NodeId node_id)
Deprecated. 

register_app

public void register_app(long app_id,
                         RouterCallbackInterface.LeafSetChangedCB lscb,
                         Object ls_user_data,
                         RouterCallbackInterface.RoutingTableChangedCB rtcb,
                         Object rt_user_data,
                         RouterCallbackInterface.RouteUpcallCB upcb,
                         Object up_user_data,
                         RouterCallbackInterface.RouteDeliverCB delcb,
                         Object del_user_data,
                         RouterCallbackInterface.ApplicationRegisteredCB regcb,
                         Object user_data)
Deprecated. 

route_init

public void route_init(BigInteger dest,
                       long app_id,
                       boolean intermediate_upcall,
                       boolean iter,
                       ostore.util.QuickSerializable payload)
Deprecated. 

route_continue

public void route_continue(BigInteger src,
                           BigInteger dest,
                           ostore.util.NodeId immediate_src,
                           long app_id,
                           boolean intermediate_upcall,
                           boolean iter,
                           ostore.util.QuickSerializable payload)
Deprecated. 

handle_app_reg_resp

protected void handle_app_reg_resp(BambooRouterAppRegResp resp)
Deprecated. 

handle_leaf_set_changed

protected void handle_leaf_set_changed(BambooLeafSetChanged msg)
Deprecated. 

handle_rt_changed

protected void handle_rt_changed(BambooRoutingTableChanged msg)
Deprecated. 

handle_route_upcall

protected void handle_route_upcall(BambooRouteUpcall msg)
Deprecated. 

handle_route_deliver

protected void handle_route_deliver(BambooRouteDeliver msg)
Deprecated. 

init

public void init(ConfigDataIF config)
          throws Exception
Deprecated. 
Specified by:
init in interface EventHandlerIF
Overrides:
init in class StandardStage
Throws:
Exception

handleEvent

public void handleEvent(QueueElementIF item)
Deprecated. 
Specified by:
handleEvent in interface EventHandlerIF
Overrides:
handleEvent in class StandardStage