ostore.network
Class SimpleTest

java.lang.Object
  |
  +--ostore.network.SimpleTest
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class SimpleTest
extends Object
implements SingleThreadedEventHandlerIF, EventHandlerIF

TODO

Version:
$Id: SimpleTest.java,v 1.2 2002/08/09 23:19:20 srhea Exp $
Author:
Sean C. Rhea

Nested Class Summary
static class SimpleTest.Msg
           
 
Field Summary
protected static boolean DEBUG
           
protected  NodeId lowest_nodeid
           
protected  int msgcnt
           
protected  int msgnum
           
protected  Map nodeid_to_classifier
           
protected  LinkedList peers
           
protected  Random rand
           
protected  int rcvcnt
           
protected  boolean start
           
protected  String TAG
           
protected  SinkIF this_sink
           
 
Constructor Summary
SimpleTest()
           
 
Method Summary
protected static void BUG(String msg)
           
 void destroy()
           
 void handleEvent(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] items)
           
 void init(ConfigDataIF config)
           
protected  void send_new_msg()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

protected String TAG

DEBUG

protected static final boolean DEBUG
See Also:
Constant Field Values

lowest_nodeid

protected NodeId lowest_nodeid

this_sink

protected SinkIF this_sink

nodeid_to_classifier

protected Map nodeid_to_classifier

peers

protected LinkedList peers

rand

protected Random rand

msgnum

protected int msgnum

msgcnt

protected int msgcnt

rcvcnt

protected int rcvcnt

start

protected boolean start
Constructor Detail

SimpleTest

public SimpleTest()
Method Detail

init

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

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException

handleEvents

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

destroy

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

send_new_msg

protected void send_new_msg()

BUG

protected static final void BUG(String msg)