bamboo.db
Class StorageManagerTest

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

public class StorageManagerTest
extends StandardStage
implements SingleThreadedEventHandlerIF

A simple regression test for the StorageManager.

Version:
$Id: StorageManagerTest.java,v 1.19 2004/08/05 21:06:17 srhea Exp $
Author:
Sean C. Rhea

Field Summary
protected  int count
           
protected  MessageDigest md
           
protected  long now
           
protected  Random rand
           
protected  BigInteger small_guid
           
 
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
StorageManagerTest()
           
 
Method Summary
protected  byte[] data_hash(ByteBuffer data)
           
 void handleEvent(QueueElementIF item)
           
 void init(ConfigDataIF config)
           
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

md

protected MessageDigest md

count

protected int count

now

protected long now

small_guid

protected BigInteger small_guid
Constructor Detail

StorageManagerTest

public StorageManagerTest()
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)

data_hash

protected byte[] data_hash(ByteBuffer data)

handleEvent

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