|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbamboo.util.StandardStage
bamboo.router.RouterCallbackInterface
bamboo.router.Router now directly implements all
of the functionality provided by this class.
public class RouterCallbackInterface
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.
| 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 |
|---|
protected static Map instances
protected Map apps
| Constructor Detail |
|---|
public RouterCallbackInterface()
throws Exception
Exception| Method Detail |
|---|
public static RouterCallbackInterface instance(ostore.util.NodeId node_id)
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)
public void route_init(BigInteger dest,
long app_id,
boolean intermediate_upcall,
boolean iter,
ostore.util.QuickSerializable payload)
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)
protected void handle_app_reg_resp(BambooRouterAppRegResp resp)
protected void handle_leaf_set_changed(BambooLeafSetChanged msg)
protected void handle_rt_changed(BambooRoutingTableChanged msg)
protected void handle_route_upcall(BambooRouteUpcall msg)
protected void handle_route_deliver(BambooRouteDeliver msg)
public void init(ConfigDataIF config)
throws Exception
init in interface EventHandlerIFinit in class StandardStageExceptionpublic void handleEvent(QueueElementIF item)
handleEvent in interface EventHandlerIFhandleEvent in class StandardStage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||