ostore.util
Class StandardStage

java.lang.Object
  |
  +--ostore.util.StandardStage
All Implemented Interfaces:
EventHandlerIF
Direct Known Subclasses:
AckStage

public abstract class StandardStage
extends Object
implements EventHandlerIF

Implements functionality common to most stages.

Version:
$Id: StandardStage.java,v 1.7 2003/05/02 17:08:36 srhea Exp $
Author:
Sean C. Rhea

Field Summary
protected  Classifier classifier
           
protected  boolean DEBUG
           
protected  String[] event_types
           
protected  String[] inb_msg_types
           
protected  NodeId my_node_id
           
protected  SinkIF my_sink
           
protected  String[] outb_msg_types
           
protected  String tag
           
 
Constructor Summary
StandardStage()
           
 
Method Summary
protected  void BUG(String msg)
           
 void destroy()
           
protected  void dispatch(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] element_array)
           
 void init(ConfigDataIF config)
           
protected  long now_ms()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface seda.sandStorm.api.EventHandlerIF
handleEvent
 

Field Detail

classifier

protected Classifier classifier

my_node_id

protected NodeId my_node_id

my_sink

protected SinkIF my_sink

tag

protected String tag

event_types

protected String[] event_types

inb_msg_types

protected String[] inb_msg_types

outb_msg_types

protected String[] outb_msg_types

DEBUG

protected boolean DEBUG
Constructor Detail

StandardStage

public StandardStage()
Method Detail

now_ms

protected long now_ms()

BUG

protected final void BUG(String msg)

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF

destroy

public void destroy()
Specified by:
destroy in interface EventHandlerIF

handleEvents

public void handleEvents(QueueElementIF[] element_array)
                  throws EventHandlerException
Specified by:
handleEvents in interface EventHandlerIF

dispatch

protected void dispatch(QueueElementIF item)