bamboo.dmgr
Class DataManagerTest

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

public class DataManagerTest
extends StandardStage
implements SingleThreadedEventHandlerIF

A simple regression test for the DataManager.

Version:
$Id: DataManagerTest.java,v 1.23 2004/11/14 20:13:45 srhea Exp $
Author:
Sean C. Rhea

Nested Class Summary
protected static class DataManagerTest.PrintDataAlarm
           
 
Field Summary
protected  int put_size
           
protected  Random rand
           
protected  int to_put
           
 
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
DataManagerTest()
           
 
Method Summary
protected  void do_put(int ttl_sec)
           
protected  void handle_get_by_guid_resp(StorageManager.GetByGuidResp resp)
           
protected  void handle_get_by_time_resp(StorageManager.GetByTimeResp resp)
           
 void handleEvent(QueueElementIF item)
           
 void init(ConfigDataIF config)
           
protected  void print_data()
           
protected  ByteBuffer random_data(int size)
           
 BigInteger random_guid()
           
 
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

rand

protected Random rand

to_put

protected int to_put

put_size

protected int put_size
Constructor Detail

DataManagerTest

public DataManagerTest()
                throws Exception
Throws:
Exception
Method Detail

init

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

random_guid

public BigInteger random_guid()

random_data

protected ByteBuffer random_data(int size)

do_put

protected void do_put(int ttl_sec)

handleEvent

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

print_data

protected void print_data()

handle_get_by_time_resp

protected void handle_get_by_time_resp(StorageManager.GetByTimeResp resp)

handle_get_by_guid_resp

protected void handle_get_by_guid_resp(StorageManager.GetByGuidResp resp)