|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbamboo.util.StandardStage
public abstract class StandardStage
Implements functionality common to most stages.
| Field Summary | |
|---|---|
protected ASyncCore |
acore
|
protected ostore.dispatch.Classifier |
classifier
|
protected boolean |
DEBUG
|
protected Class[] |
event_types
|
protected Class[] |
inb_msg_types
|
protected org.apache.log4j.Logger |
logger
|
protected ostore.util.NodeId |
my_node_id
|
protected SinkIF |
my_sink
|
protected Class[] |
outb_msg_types
|
protected boolean |
sim_running
|
| Constructor Summary | |
|---|---|
protected |
StandardStage()
|
| Method Summary | |
|---|---|
protected void |
BUG(Exception e)
Like calling assert(false) in C; prints a stack trace. |
protected void |
BUG(String msg)
Like calling assert(false) in C. |
protected void |
BUG(String msg,
Exception e)
Like calling assert(false) in C; prints a stack trace. |
protected boolean |
config_get_boolean(ConfigDataIF config,
String name)
|
protected double |
config_get_double(ConfigDataIF config,
String name)
|
protected int |
config_get_int(ConfigDataIF config,
String name)
|
protected String |
config_get_string(ConfigDataIF config,
String name)
|
protected int |
configGetInt(ConfigDataIF config,
String name,
int defaultValue)
|
void |
destroy()
|
protected void |
dispatch(QueueElementIF item)
|
protected void |
enqueue(SinkIF sink,
QueueElementIF item)
|
void |
handleEvent(QueueElementIF item)
|
void |
handleEvents(QueueElementIF[] element_array)
|
void |
init(ConfigDataIF config)
|
protected EventHandlerIF |
lookup_stage(ConfigDataIF config,
String name)
|
protected long |
now_ms()
Returns the current time in milliseconds; works correctly under the Bamboo simulator and the Simple OceanStore Simulator (SOSS). |
protected long |
timer_ms()
Like now_ms, but uses GetTimeOfDayCC if it's available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ostore.dispatch.Classifier classifier
protected ostore.util.NodeId my_node_id
protected SinkIF my_sink
protected Class[] event_types
protected Class[] inb_msg_types
protected Class[] outb_msg_types
protected boolean DEBUG
protected boolean sim_running
protected ASyncCore acore
protected org.apache.log4j.Logger logger
| Constructor Detail |
|---|
protected StandardStage()
| Method Detail |
|---|
protected EventHandlerIF lookup_stage(ConfigDataIF config,
String name)
throws NoSuchStageException
NoSuchStageExceptionprotected long now_ms()
protected long timer_ms()
protected final void BUG(String msg)
protected final void BUG(String msg,
Exception e)
protected final void BUG(Exception e)
protected int configGetInt(ConfigDataIF config,
String name,
int defaultValue)
protected int config_get_int(ConfigDataIF config,
String name)
protected boolean config_get_boolean(ConfigDataIF config,
String name)
protected String config_get_string(ConfigDataIF config,
String name)
protected double config_get_double(ConfigDataIF config,
String name)
public void init(ConfigDataIF config)
throws Exception
init in interface EventHandlerIFExceptionpublic void destroy()
destroy in interface EventHandlerIFpublic void handleEvent(QueueElementIF item)
handleEvent in interface EventHandlerIF
public void handleEvents(QueueElementIF[] element_array)
throws EventHandlerException
handleEvents in interface EventHandlerIFEventHandlerException
protected final void enqueue(SinkIF sink,
QueueElementIF item)
protected final void dispatch(QueueElementIF item)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||